摘要:
1. 视图控制对象应该在什么时候载入视图? When the view controller receive the view message, the view controller begin to creat the view, if the veiw object does not exist. If you send the message of view in view controller init method, this leads the pattern deferred mechanismdoes not work。 This problem is seem not... 阅读全文
摘要:
A Window object has several responsibilities.1. It contains your application's visible content.2. It plays a key role in the delivery of touch events to your views and other application objects.3. It works with your application's view controllers to facilitate orientation changes.n iOS, wind 阅读全文
摘要:
In IOS, you use windows and views to present your application's content on the screen.The UIWindow class defines objects (known as windows ) that manage and coordinate the windows an application displays on the screen.Windows do not have any visible content themselves but provide a basic contain 阅读全文
摘要:
There are, however, three occasions when you might use your own autorelease pools:1. If you are writing a program that is not based on a UI framework, such as a command-line tool.2. If you write a loop that creats many temporary objects.3.you spawn a secondary thread. (2)Autorelease Pools and Threa. 阅读全文