开发者

iOS File Association

开发者 https://www.devze.com 2023-03-31 11:30 出处:网络
I\'ve set up file association in my iOS applicatio开发者_运维技巧n for KML and KMZ files. I\'ve the app is not opened, then selecting \"Open With APPNAME\" from Safari will work.

I've set up file association in my iOS applicatio开发者_运维技巧n for KML and KMZ files.

I've the app is not opened, then selecting "Open With APPNAME" from Safari will work. If the app is already open, however, then all it does it make the app prominent.

I've implemented both - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation

and

-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

Neither are being called.

Any hints as to why?


The result: The test device was using an earlier OS version (iOS 4.0) than my other devices (iOS 4.3.5, iOS 5.0b7). Prior to iOS4.2, a different method was used to handle opening via file association.

0

精彩评论

暂无评论...
验证码 换一张
取 消