开发者

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

开发者 https://www.devze.com 2023-02-12 02:19 出处:网络
i have load the mailcomposer on reciving the loca开发者_开发百科lnotification is it possible??You should code as follows,

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

精彩评论

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