【发布时间】:2013-12-11 21:05:35
【问题描述】:
我试图用 Facebook 上的以下代码仅将字符串的特定部分超链接到 url
SLComposeViewController *fbController=[SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook];
NSString *strURL =@"http://ec2-54-215-150-229.us-west-1.compute.amazonaws.com/TripScope/printguide/25157";
NSString *strHtml=[NSString stringWithFormat:@"<a href=%@>Booked by me</a> \n TripAgency",strURL];
[fbController setInitialText:strHtml];
使用上面的代码,它在 facebook 上显示 html 文本。
我该如何解决这个问题?有什么想法吗?
【问题讨论】:
标签: ios iphone facebook ios5 ios6