Saving a view with nscoding
I implemente开发者_如何学Cd the two methods of the protocol nscoding in a view controller, but now I want to save the view when the apps close and restore the view when the apps start, how I do this?
You can use a NIB to ensure that the view objects are always loaded as required, then just configure them in the view controller's -viewDidLoad method.
精彩评论