Is it possible to add/remove custom URL schemes for my application while it's running? Right now the CFBundleURLSchemes property is set in Info.plist.
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- back button text does not change
- iOS (objective-c) compression_decode_buffer() retu
- how to find the index position of the ARRAY Where
相关文章
- 现在使用swift开发ios应用好还是swift?
- TCC __TCCAccessRequest_block_invoke
- xcode 4 garbage collection removed?
- Unable to process app at this time due to a genera
- How can I add media attachments to my push notific
- didBeginContact:(SKPhysicsContact *)contact not in
- Custom Marker performance iOS, crash with result “
- Converting (u)int64_t to NSNumbers
According to this discussion on Cocoa Dev the answer is no, custom URL schemes can't be registered programmatically. You must specify them in
Info.plist
. (but usingLSRegisterURL
, you can ask Launch Services to reload your application'sInfo.plist
if you programmatically change it. But that's ugly.).Launch Services will do that. Have a look at the Launch Services Programming Guide and the Launch Services Reference for details.
(Edit: Launch Services is what you want, but the function I mentioned was for changing the default handler.)