Jump to content
Sign in to follow this  
Ekin

Fix NSURL issues in 11.2 sdk

Recommended Posts

Ekin

Don't remember what this was for but I'm sure its important.
call it from root.plist

    <dict>
            <key>action</key>
            <string>link</string>
            <key>cell</key>
            <string>PSButtonCell</string>
            <key>icon</key>
            <string>archer@2x.jpg</string>
            <key>label</key>
            <string>Find me on Twitter.</string>
        </dict>

add it to WDDRootListController.m

- (void)link {
UIApplication *application = [UIApplication sharedApplication];
NSURL *URL = [NSURL URLWithString:@"http://twitter.com/Sterling0x1"];
[application openURL:URL options:@{} completionHandler:^(BOOL success) {
    if (success) {
         NSLog(@"Opened url");
    }
}];}


 

Edited by Ekin

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...