1

I want to setinitialtext in such a way when it's posted to timeline. it should say like below and i want to set a url behind the seen for GlanseApp text only

NSString *KSocialSharingTextFBPT=@" Just discovered this great item via [GlanseApp](https://itunes.apple.com/us/app/glanse/id762075664?mt=8) for iPhone"

how can i achive this ?

Here is the code for sharing

SLComposeViewController *composeController = [SLComposeViewController 
           composeViewControllerForServiceType:SLServiceTypeFacebook];
[composeController setInitialText:KSocialSharingTextFBPT];
[composeController addImage:image];
[composeController addURL: [NSURL URLWithString:[product objectForKey:@"producturl"]]];
composeController.completionHandler =^(SLComposeViewControllerResult result) {
    switch(result) {
            //  This means the user cancelled without sending the Tweet
        case SLComposeViewControllerResultCancelled:
            break;
            //  This means the user hit 'Send'
        case SLComposeViewControllerResultDone:
            break;
    }
};
Rajesh Dhiman
  • 1,888
  • 1
  • 17
  • 30
Amit Saxena
  • 596
  • 7
  • 18

1 Answers1

0

iOS does not support rich text (RTF) like MacOS does. The only UI object that supports clickable text links directly is UIWebView.
You can try This link if it helps you.

Community
  • 1
  • 1
iEngineer
  • 1,319
  • 1
  • 11
  • 27