Quantcast
Channel: 睿论坛 - 最新话题
Viewing all articles
Browse latest Browse all 5702

canOpenURL问题请教

$
0
0

@sailor wrote:

在xcode里编译运行,可以正常跳转,把app编成deb后再运行,无法跳转,日志里面也没有啥错误信息,代码如下:
NSURL *url= [NSURL URLWithString:@“prefs:root=General&path=VPN”];
if([[UIApplication sharedApplication] canOpenURL:url]) {
NSLog(@“Can open VPN url”);
[[UIApplication sharedApplication] openURL:url];
}
else
{
NSLog(@“Can’t open VPN url”);
}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5702

Trending Articles