에서 UITextView
을 서브 클래스 화하면 canBeforeFirstResponder
에서 disable copy, select, and select all
을 UITextView
으로 덮어 쓸 수 있습니다.서브 클래스 UITextView
#import <UIKit/UIKit.h>
@class English;
@protocol EnglishDelegate
- (void)dismissViewDidFinish:(UIViewController *)viewController;
@end
@interface English: UIViewController <UITextViewDelegate, UIScrollViewDelegate>
{
id<EnglishDelegate> delegate;
UITextView *textView;
UINavigationBar *navBar;
UINavigationController *navigationController;
}
@property (nonatomic, retain) UITextView *textView;
@property (nonatomic, assign) UINavigationBar *navBar;
@property (strong, nonatomic) UINavigationController *navigationController;
@property (nonatomic, assign) id<EnglishDelegate> delegate;
@property (nonatomic, retain) UIScrollView *scrollView;
-(void)dismissView:(id)sender;
@end
누구나 파일을 h 파일로 서브 클래 싱하는 방법을 알고 있습니다.
도움 주셔서 감사합니다.
가능한 중복 [복사, 잘라 내기, 선택, UITextView에서 모두 선택을 어떻게 해제] (http://stackoverflow.com/questions/ 1426731/how-disable-copy-cut-select-select-all-in-uitextview) –