A
A
Alex Palm2016-07-13 15:55:38
Objective-C
Alex Palm, 2016-07-13 15:55:38

How to programmatically get the URL Identifier - the prefix of your own application in Xcode?

I am creating my own framework, which will be built into third-party applications.
It is necessary that the framework can programmatically obtain the URL Identifier parameter of the application to which the framework is added.
Tried like this:
[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleURLName"]
But I get null

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
A
Alex Palm, 2016-07-14
@palmoff

Already figured out:
for (NSDictionary *item in [fileInfo objectForKey:@"CFBundleURLTypes"]) {
NSLog(@"!!!!!!!!!!!!!!!%@", [item objectForKey:@"CFBundleURLName"] );
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question