请教 iOS 开发关于 AirDrop 下方显示的“在 XX 中打开”的问题
天蓬老师
天蓬老师 2017-04-17 16:27:02
0
1
452
天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all (1)
大家讲道理

This thing is called UTI, Uniform Type Identifiers

You can read Apple’s documentation here

https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/understanding_utis/understand_utis_declare/understand_utis_declare.html

1. First, register the file types you can open in info.plist

  1. Then if someone chooses to use your App to open this file, this function will be called. You can implement it:

  • (BOOL)application:(UIApplication)application openURL:(NSURL)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation

You can also open a controller here

That’s almost it, you should be able to pull it out once you find the direction. . If you want a demo. . I can masturbate too. . (Allow me to fill in the gaps later)

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!