, selectedRange - , , , -textViewDidBeginEditing:, , "":
- (void)textViewDidBeginEditing:(UITextView *)textView
{
NSRange defaultMsgRange = [textView.text rangeOfString:NSLocalizedString(@"TEXTFIELD_DEFAULT_MESSAGE", nil) options:NSAnchoredSearch];
BOOL isDefaultMsg = !(defaultMsgRange.location == NSNotFound && defaultMsgRange.length == 0);
if (isDefaultMsg) {
[self performBlock:^(id sender) {
textView.selectedRange = defaultMsgRange;
} afterDelay:0.0];
}
}