关于iOS 10不能跳转设置的解决办法

 NSURL*url=[NSURL URLWithString:@"Prefs:root=WIFI"];
  Class LSApplicationWorkspace = NSClassFromString(@"LSApplicationWorkspace");
 [[LSApplicationWorkspace performSelector:@selector(defaultWorkspace)] performSelector:@selector(openSensitiveURL:withOptions:) withObject:url withObject:nil];

注意:私有方法慎用,可能会导致上架失败!!!!

原文地址:https://www.cnblogs.com/pioneerMax/p/6125572.html