You can do this:
[[textView layoutManager] usedRectForTextContainer:[textView textContainer]].size
You can do this:
[[textView layoutManager] usedRectForTextContainer:[textView textContainer]].size
If you get this error when trying your app on the device, you have PNG compression on in Xcode, in Xcode 4 goto “Build Settings” search for PNG in the search box and turn off PNG compression…