2014-02-26 56 views
1

我想以setinitialtext的方式發佈到時間軸。應該說像下面,我想設置的URL看到了GlanseApp文本僅在SLComposeViewController中顯示初始文本作爲鏈接

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

我怎樣才能實現這一目標的背後?

這裏是一個分享

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; 
    } 
}; 

回答

0

iOS不支持富文本格式(RTF)像MacOS的功能的代碼。支持可點擊文本鏈接的唯一UI對象是UIWebView。
你可以嘗試This鏈接,如果它可以幫助你。

相關問題