When will a autorelease get released
I am looking to to develop an app where there will be "n" number of views created based on the user's interaction. If each of these views are created dynamically with autorelease, when will the view actually be released?
Lets say there are 10 views, all being dynamically created views with autorelease:
I am a little confused soul here.
Thanks
From the way you ask your questions, I've noticed you are missing some very basic knowledge about iOS SDK, MVC and OOP in general. I would honestly suggest you try creating a much simpler app than that chat app of yours first to learn some basics.
It will help if you post key segments of your code so we can see what you are doing. In short, if a view controller is in the navigation stack, it will be retained by the navigation controller. If it is popped off but you want to keep it, you'll need to retain it from another controller, probably the one that presents it.
链接地址: http://www.djcxy.com/p/53278.html上一篇: C返回自动发行副本
下一篇: autorelease何时发布