开发者

"modifying layer that is being finalized" error when popping navigation controller

I'm using navigation controller for my app. In one of views I have an animation that is fired by timer. When I click back I get this message in console:

modifying layer that is being finalized

I think that it's because animation is still running after dealloc. I found how to remove animations but it's not working in this case:

[toolbarView.layer removeAllAnimations];

Is there a different way to release this viewcontro开发者_C百科ller without problems?


That is due to releasing problem. in my case, i m allocating a class inside the method and that i am pushing to next view controller . after that i m releasing that class.so it is showing that error.

solution.... i initialized in .h and released in dealloc.now it is working fine.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜