quit app in iOS4

前端 未结 4 1937
轮回少年
轮回少年 2020-12-20 06:27

I have an old app which did many UI initialization work in viewDidLoad of various views. In iOS4 home button just put the app in background so viewDidLoad won\'t get called

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-20 06:50

    http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIApplicationDelegate_Protocol/Reference/Reference.html

    you have to look up to the UIApplicationDidBecomeActiveNotification i think, but in the uiapplicationdelegate-protocol, there are even some other interesting things for you

    or perfectly for you: UIApplicationWillEnterForegroundNotification as a new notification in ios4 for this problem

提交回复
热议问题