Fire Fist
Fire Fist

Reputation: 7060

How to disappear keyboard from UITextView when touch in iOS?

I don't want to appear any keyboard when i touched UITextView in iOS. How can i do that?

Upvotes: 0

Views: 530

Answers (2)

Jonathan Naguin
Jonathan Naguin

Reputation: 14796

You can subclassing UITextView and override "-(BOOL)canBecomeFirstResponder", returning NO.

Upvotes: 1

Steve Moser
Steve Moser

Reputation: 7807

You could make the UITextView non-editable.

UITextView* tv = [[UITextView alloc] init];
[tv setEditable:NO];

Upvotes: 2

Related Questions