Let's turn our attention to further fleshing out the design for out Tweet cells today. We will accomplish this by introducing our second model object to the project: Tweet. This object will hold information such as User and the tweet message string.
To render out the text easily with one UITextView component, I'll demonstrate how to use NSAttributedString to format our strings according to the designs. This is a really efficient way of reducing the amount of components that are inside your cell subviews.
Enjoy.
iOS Basic Training Course:
https://www.letsbuildthatapp.com/basic-training
Completed Source Code
https://www.letsbuildthatapp.com/course_video?id=832
Follow me on Twitter: https://twitter.com/buildthatapp
Download
0 formats
No download links available.
Swift 3: Twitter - Tweets String Formatting Tips And Tricks with NSAttributedString (Ep 9) | NatokHD