我想在safari中打开一个移动配置文件(mobileconfig)来安装它,但没有任何工作。 我使用URL方案:打开.mobileconfig文件保存在Safari中的应用程序ios
NSURL *finalURL = [NSURL URLWithString:[NSString stringWithFormat:@"myAppURLScheme://%@",fileName]];
BOOL canOpen = [[UIApplication sharedApplication] openURL:finalURL];
if (canOpen) NSLog(@"can open");
else NSLog(@"can't open");
日志 - >can open
,我尝试设置所有的路径(该文件是在Documents
文件夹)的文件,而不是文件名,什么都没有。 我该怎么做。 ?
EDIT1:此application做同样的(打开Safari安装配置)
EDIT2:我认为我必须寻找到发送文件(任何)Safari浏览器的方式,Safari就会知道如何处理它。
我在CocoaHTTPServer中找不到RoutingHTTPServer。这是你创造的东西吗? – 2013-07-08 07:32:44
https://github.com/mattstevens/RoutingHTTPServer – malinois 2013-07-08 09:26:26
https://github.com/robbiehanson/CocoaHTTPServer – malinois 2013-07-08 09:27:08