Iphone OS 4.0 : Application is not coming applicationDidBecomeActive
I have recently switched my application to SDK 4.0. Now i am compiling my 开发者_JAVA百科application with SDK 4.0 with deployment target OS 3.0. and i have facing a strange issue/bug.
Some times when my application resumes from background. it does not calls the applicationDidBecomeActive method .... is anyone else facing the issue ?
what is the solution for this ?????
This happened to me too - Until I realized the call is being made to AppDelegate_iPhone, so you need to forward it to its super, AppDelegate_Shared.
You may have more success with the UIApplicationWillEnterForegroundNotification / UIApplicationDidEnterBackgroundNotification notifications.
Make sure to wrap your observer subscriptions with:
if ([[UIDevice currentDevice] respondsToSelector:@selector(isMultitaskingSupported)])
{
...
}
精彩评论