我想在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