我如何继承UITextView
in以 UIActionSheet
覆盖in 。canBeforeFirstResponder
disable copy, select, and select all
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 文件中对其进行子类化。
感谢帮助。