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

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -