@@ -61,22 +61,21 @@ - (instancetype)initWithFrame:(CGRect)frame
61
61
[self addSubview: bubbleImageView];
62
62
_bubbleImageView = bubbleImageView;
63
63
64
- UITextView *textView = [[UITextView alloc ] init ];
65
- textView.font = [UIFont systemFontOfSize: 16 .0f ];
66
- textView.textColor = [UIColor blackColor ];
67
- textView.editable = NO ;
68
- textView.userInteractionEnabled = YES ;
69
- textView.showsHorizontalScrollIndicator = NO ;
70
- textView.showsVerticalScrollIndicator = NO ;
71
- textView.scrollEnabled = NO ;
72
- textView.backgroundColor = [UIColor clearColor ];
73
- textView.contentInset = UIEdgeInsetsZero;
74
- textView.scrollIndicatorInsets = UIEdgeInsetsZero;
75
- textView.contentOffset = CGPointZero;
76
- textView.dataDetectorTypes = UIDataDetectorTypeAll;
77
- [self addSubview: textView];
78
- [self bringSubviewToFront: textView];
79
- _textView = textView;
64
+ _textView = [[UITextView alloc ] init ];
65
+ _textView.font = [UIFont systemFontOfSize: 16 .0f ];
66
+ _textView.textColor = [UIColor blackColor ];
67
+ _textView.editable = NO ;
68
+ _textView.userInteractionEnabled = YES ;
69
+ _textView.showsHorizontalScrollIndicator = NO ;
70
+ _textView.showsVerticalScrollIndicator = NO ;
71
+ _textView.scrollEnabled = NO ;
72
+ _textView.backgroundColor = [UIColor clearColor ];
73
+ _textView.contentInset = UIEdgeInsetsZero;
74
+ _textView.scrollIndicatorInsets = UIEdgeInsetsZero;
75
+ _textView.contentOffset = CGPointZero;
76
+ _textView.dataDetectorTypes = UIDataDetectorTypeAll;
77
+ [self addSubview: _textView];
78
+ [self bringSubviewToFront: _textView];
80
79
81
80
// NOTE: TODO: textView frame & text inset
82
81
// --------------------
0 commit comments