开发者

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

开发者 https://www.devze.com 2023-03-20 19:05 出处:网络
I\'m using navigation controller for my app. In one of views I have an animation that is fired by timer.

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

精彩评论

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