Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个显示精灵的滚动条,我所做的是显示一个禁用所有操作的背景,除了 CCScrollLayer ...
有谁知道如何禁用它?
要删除滚动,只需禁用触摸。
mScroller = [CCScrollLayer nodeWithLayers:mLayerArray widthOffset:20.0f]; //In cocos2d 2.0 mScroller.touchEnabled = false; //In cocos2d 1.0 mScroller.isTouchEnabled = false;
标记)在大括号或大括号 { } 中使用 JavaScript