博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

temp

Posted on 2012-12-26 12:11  酸梅拯救地球  阅读(127)  评论(0)    收藏  举报

1.For each view controller you choose to preserve, you also need to decide on how you want to restore it later. UIKit offers two ways to recreate objects. You can let your app delegate recreate it or you can assign a restoration class to the view controller and let that class recreate it. A restoration classimplements the UIViewControllerRestoration protocol and is responsible for finding or creating a designated object at restore time. Here are some tips for when to use each one: