objective c - hyperlink text to URL not working on iPad -
i'm trying link users on app website, can't seem working, been looking few hours still no solution.
-(ibaction)hypertext:(id)sender { nslog(@"this should load hypertext"); [[uiapplication sharedapplication]openurl:[nsurl urlwithstring:@"www.youtube.com"]]; } this code, it's linked button,i know running because of nslog. not going url, or safari load it. doing wrong? help.
i think, should add protocol: [nsurl urlwithstring:@"**http://**www.youtube.com"]
Comments
Post a Comment