forked from rjinxx/RJTextView
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RJTextView.h
45 lines (32 loc) · 898 Bytes
/
RJTextView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
// RJTextView.h
// RJTextViewDemo
//
// Created by Rylan on 3/11/15.
// Copyright (c) 2015 ArcSoft. All rights reserved.
//
#import <UIKit/UIKit.h>
@class RJTextView;
@protocol RJTextViewDelegate <NSObject>
@optional
- (void)textViewDidEndEditing:(RJTextView *)textView;
@end
@interface CTextView : UITextView
@end
@interface RJTextView : UIView
/*
RECOMMEND INITIALIZTION:
Frame:CGRectMake(85, 100, 150, 155) defaultText:@"LIFE IS\nBUT A\nDREAM"];
*/
- (id)initWithFrame:(CGRect)frame
defaultText:(NSString *)text
font:(UIFont *)font
color:(UIColor *)color
minSize:(CGSize)minSize;
// property setting
@property (nonatomic, assign) id<RJTextViewDelegate> delegate;
// read only
@property (nonatomic, retain, readonly) CTextView *textView;
@property (nonatomic, assign, readonly) BOOL isEditting;
- (void)showTextViewBox;
@end