开发者

Iphone OS 4.0 : Application is not coming applicationDidBecomeActive

开发者 https://www.devze.com 2023-01-06 23:42 出处:网络
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.

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)])
{
    ... 
}
0

精彩评论

暂无评论...
验证码 换一张
取 消