mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
26 lines
589 B
Objective-C
26 lines
589 B
Objective-C
//
|
|
// UITextViewNoDefine.m
|
|
// linphone
|
|
//
|
|
// Created by guillaume on 05/03/2014.
|
|
//
|
|
//
|
|
|
|
#import "UITextViewNoDefine.h"
|
|
|
|
@implementation UITextViewNoDefine
|
|
|
|
@synthesize allowSelectAll;
|
|
|
|
- (BOOL)canPerformAction:(SEL)action withSender:(id)sender {
|
|
// disable "define" option, since it messes with the keyboard
|
|
if ([[NSStringFromSelector(action) lowercaseString] rangeOfString:@"define"].location != NSNotFound) {
|
|
return NO;
|
|
} else if (action == @selector(selectAll:) && allowSelectAll) {
|
|
return YES;
|
|
} else {
|
|
return [super canPerformAction:action withSender:sender];
|
|
}
|
|
}
|
|
|
|
@end
|