iOS UIAlertView button to go to Setting App

后端 未结 5 2304
野性不改
野性不改 2020-12-02 05:45

Is there a way to have the button of a UIAlertView go to the Settings App for the specific App calling it?

Thanks

5条回答
  •  情话喂你
    2020-12-02 06:12

    It works on iOS8+ also,but we need to change something

    NSURL*url=[NSURL URLWithString:@"prefs:root=WIFI"];
    if([[UIApplication sharedApplication] canOpenURL:url]){
        [[UIApplication sharedApplication] openURL:url];
    }
    

提交回复
热议问题