I am trying to disable the return key found when typing in a UITextView
. I want the text to have no page indents like found in a UITextField
. This is the code I have so far:
- (BOOL)textView:(UITextView *)aTextView shouldChangeTextInRange:(NSRange)aRange replacementText:(NSString*)aText
{
if ([aTextView.text isEqualToString:@"\r\n"]) {
return NO;
}
Any ideas?