关于UIDargPanel的接口setInnerContainerPosition(const CCPoint &point, bool animated)
第二参数是表示是否显示移动动画吗?
但是设置了没效果。
关于UIDargPanel的接口setInnerContainerPosition(const CCPoint &point, bool animated)
第二参数是表示是否显示移动动画吗?
但是设置了没效果。
楼主你好,目前 UIDargPanel 已经被整合到UIscrollview了,建议升级。
你的这个设置位置方法的确是设置移动动画的,但是这个动画时间可能您设置的过短或由其他原因造成的。
新的方法已变为 :
jumpToPercentVertical(float percent)
jumpToPercentHorizontal(float percent)
jumpToPercentBothDirection(const CCPoint& percent)
scrollToPercentVertical(float percent, float time, bool attenuated)
scrollToPercentHorizontal(float percent, float time, bool attenuated)
scrollToPercentBothDirection(const CCPoint& percent, float time, bool attenuated)
attenuated参数是设置滑动曲线的,true的话动画比较平和不生硬。