SyntaxFix
Write A Post
Hire A Developer
Questions
Try this .
NSInteger lengthOfText = [[textView.text stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] length];