开发者

when application become active then how we load the another view or invoke the root view controller

i have load the mailcomposer on reciving the loca开发者_开发百科lnotification is it possible??


You should code as follows,

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    
UILocalNotification *localNotif = [launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey];
    if (localNotif) 
    {
        //code for opening mail composer
    }



-(void) application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification
    {
           //code for opening mail composer
    }
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜