Category Archives for UITextView

UITextView Placeholder Text in Swift (IBDesignable in IB)

This post is a brief tutorial of a UITextView with placeholder text, written in Swift. It is implemented as a subclass of UIView using a Xib, and supports IBDesignable and IBInspectable. The 2 classes

Continue reading

2 Minute Video Tutorial: Let Auto Layout and Constraints Move View for Keyboard

There are various ways to move a view to accommodate the keyboard when it opens. In this 2 minute video tutorial, I demonstrate one method that I really like, which is to let Auto Layout and Constraints

Continue reading

Limit A Substring in UITextView With Swift

While integrating with Twitter in my current Swift app, I wanted to limit the number of lines in any given Tweet, aside from the limit of 140 characters. I didn’t see anything in the String class

Continue reading