【发布时间】:2015-09-11 14:26:54
【问题描述】:
我正在尝试使用 UIApplication 打开一个 URL,但是当我运行时:
[[UIApplication sharedApplication] canOpenURL:urlToUpdate
url 是用 String 和
创建的NSString *urlStringToOpenEscaped = [urlStringToOpen stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSURL *urlToUpdate = [NSURL URLWithString:urlStringToOpenEscaped];
总是返回 FALSE。
我检查了该 URL 可从 iPad 访问。
有什么想法吗?
【问题讨论】:
-
能否给我们显示 url 字符串(urlStringToOpenEscaped)?
-
确定:
itms-services://?action=download-manifest&url=http://address/App.plist -
在这里查看第一个答案中的 cmets。它可能会有所帮助。 stackoverflow.com/questions/4695180/…
-
Thanksss,我会尝试审查所有案例。附加信息:我检查了 URL:
http://address/App.plist在调用中返回 TRUE,canOpenURL。
标签: ios uiapplication