CCLayer设置anchorPoint无效的问题

时间:2014-10-27 17:14:47   收藏:0   阅读:193
 

最近刚发现一个问题,anchorPoint这个属性虽然是属于CCNode的,但是CCLayer设置anchorPoint没有效果。CCLayer的anchorPoint被默认设定在(0, 0)位置,而且无法改变。

根据网上的搜索得到一个解决办法:在setAnchorPoint之前先设置setIsRelativeAnchorPoint = YES;

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!