ios - How to give hyperlink in the nsstring, to share in fb? -
nsstring
"get xxx iphone app here". in string "here" , want give hyperlink
particular url
. fb share , , i'm using uiactivityviewcontroller
. don't wanna go uilabel
. know might silly,... me out.
thanks in advance geeks....
if want share on facebook, need tell safari open url display facebook page allows user share. here example :
//the url want share nsstring *urlstring = @"http://stackoverflow.com"; //the title want displayed on facebook nsstring *title = "the title of page"; //create url string tell facebook want share specific page nsstring *shareurlstring = [nsstring stringwithformat:@"http://www.facebook.com/sharer.php?u=%@&t=%@", urlstring , title]; //create url object nsurl *url = [ [ nsurl alloc ] initwithstring:shareurlstring ]; //launch safari url created [[uiapplication sharedapplication] openurl:url]; //release object if don't need [url release];
Comments
Post a Comment