我使用 CCScrollVeiw 但它不能平滑滚动。
scroll_view = new cocos2d::extension::CCScrollView;
我使用setViewSize
和container->setContentSize()
方法。我设置了相同的宽度尺寸。
但是我设置了比视图更大的内容大小的宽度大小。但是我没有解决你能告诉我为什么不光滑的滚动吗?
我使用 CCScrollVeiw 但它不能平滑滚动。
scroll_view = new cocos2d::extension::CCScrollView;
我使用setViewSize
和container->setContentSize()
方法。我设置了相同的宽度尺寸。
但是我设置了比视图更大的内容大小的宽度大小。但是我没有解决你能告诉我为什么不光滑的滚动吗?
CCScrollView* CCScrollView::create(CCSize size, CCNode* container)
your container can be current layer.And size'll be view,which is scrollable.So if u have lesser items to scroll view, decrease view size.And if u have many items to scroll u can increase view size.
i can help you..if u'll be more descriptive....or post code...