Skip to content

Instantly share code, notes, and snippets.

@fethica
Created June 30, 2013 00:57
Show Gist options
  • Save fethica/5893323 to your computer and use it in GitHub Desktop.
Save fethica/5893323 to your computer and use it in GitHub Desktop.
Dynamic UITextView height
textView.text = @"some text";
CGRect rect = textView.frame;
rect.size.height = textView.contentSize.height;
textView.frame = rect;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment