跳转到自己App的“通知”

 

 

  if (iOS8) {

        

        NSURL *url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];

        

        if ([[UIApplication sharedApplication] canOpenURL:url]) {

            [[UIApplication sharedApplication] openURL:url];

        }

    }

 /*******************************忽略下面的内容  只看上面就好了**********************************************/

//    if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"prefs:root=NOTIFICATIONS_ID"]])

//    {

//        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=NOTIFICATIONS_ID&path=\(identifier)"]];

//        

//        

//    }

 

 

////        {

////            [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=xxx"]];

////        }

 

posted @ 2016-08-19 10:14  iOS张文权  阅读(479)  评论(0编辑  收藏  举报