I try to detect when carriage goes at new line in UITextView. I can detect it by comparison total later width with UITextView width:
CGSize size = [textView.
You can use the UITextViewDelegate
- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText: (NSString *)text { BOOL newLine = [text isEqualToString:@"\n"]; if(newLine) { NSLog(@"User started a new line"); } return YES; }