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

php - Extract Text from HTTP referer -

Receive udp packets in android gstreamer -

authentication - ASP.NET Core 1.0. Bearer Token, cannot access custom claims -