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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -