Subclass
UITableViewCell and overright following method.
Code:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
On touch, detect the current location and validate it against the UITextView's frame (i.e whether it lies inside the frame or not). Call following statement to hide the keyboard.
Code:
[myTextView resignFirstResponder];
You will have to specify number of lines as follows.
Code:
myTextView.numberOfLines = 2; //
The scrolling will be done automatically if the number of lines will be more than 2 and yes, it depends on the height of the texview also.