Z_Dragon

调试中的错误(3)

1.objective-c debug:

现在只会插入断点,这篇文章说的很全面

https://www.cocoachina.com/applenews/devnews/2013/0701/6514.html

2.关于更新方法,优先级

-(void)scheduleUpdates

{[self scheduleUpdateWithPriority:-1];}

-(void)scheduleUpdates

{[self scheduleUpdates];}

-(void)scheduleUpdates

{[self scheduleUpdateWithPriority:1];}

-(void)update:(ccTime)delta

{//每一帧调用的方法}

3.关于更新方法,时间间隔

[self schedule:@selector(update:)interval:*f];

调用方法时注意函数大小写问题,今儿就因为update写成Update查了一上午的错一_一!

4.关于内存管理,对象释放

https://blog.sina.com.cn/s/blog_6afeac5001011tfd.html


 
评论

© Z_Dragon | Powered by LOFTER