I made my own UITableViewController and I'm trying to get my TWTRTweetTableViewCell objects to detect links. I have an array of TWTRTweet objects that I use to generate my table view cells. This works perfectly but the cells cannot detect URL links.
var statuses: [TWTRTweet]!
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let status = statuses[indexPath.row]
let tweetViewCell = tableView.dequeueReusableCellWithIdentifier("TwitterCell", forIndexPath: indexPath) as! TWTRTweetTableViewCell
tweetViewCell.configureWithTweet(status)
return tweetViewCell
}
I even tried setting link colors to red to no avail.
TWTRTweetView.appearance().linkTextColor = UIColor.redColor()
在表格视图单元格内使用UITextview并在情节提要中设置textview属性,如下所示:-可编辑:否,可选:是,检测:选择此部分下的所有属性。
The error was due to a me setting "include_entities" parameter to false.
The fix was to set it to true in my URLRequestWithMethod request.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.