因为现在这个控件从左到右一共6项,初始都是从第一项在最左边的,也就是0,但现在我想把这个滚动层初始化位置向后挪100个像素,请问UIScrollView能实现吗
可以实现,调用下面这几个方法即可:不过请在onEnter函数之后再调用。
/**
* Scroll inner container to vertical percent position of scrollview.
*/
void scrollToPercentVertical(float percent, float time, bool attenuated);
/**
* Scroll inner container to horizontal percent position of scrollview.
*/
void scrollToPercentHorizontal(float percent, float time, bool attenuated);
十分感谢,子龙大大:871: