Please note, this blog entry is from a previous course. You might want to check out the current one.
Enhance Smashtag from lecture to highlight (in a different color for each) hashtags, urls and user screen names mentioned in the text of a Tweet (these are known as “mentions”). Note that mentions are already located for you in each Tweet by Twitter and show up as [IndexedKeyword]s in the Tweet class in the supplied Twitter code.
The tweet class provides nearly everything needed – arrays of indexed keywords. What’s left is to choose a color for the keyword type – as public properties of the cell view:
var hashtagColor = UIColor.blueColor() var urlColor = UIColor.redColor() var userMentionsColor = UIColor.greenColor()
Continue reading “cs193p – Project #4 Assignment #4 Task #1”