TuSDKPFTextView Class Reference
| Inherits from | UIView |
|---|---|
| Conforms to | TuSDKPFTextItemViewDelegate |
| Declared in | TuSDKPFTextView.h |
textParaStyle
初始化文字样式信息设置
@property (nonatomic, strong) NSMutableParagraphStyle *textParaStyleDeclared In
TuSDKPFTextView.h
textCount
当前已使用贴纸总数
@property (nonatomic, readonly) NSUInteger textCountDeclared In
TuSDKPFTextView.h
textBorderWidth
边框宽度
@property (nonatomic, assign) CGFloat textBorderWidthDeclared In
TuSDKPFTextView.h
textBorderColor
边框颜色
@property (nonatomic, retain) UIColor *textBorderColorDeclared In
TuSDKPFTextView.h
textEdgeInsets
文字边距 默认 (0,0,0,0)
@property (nonatomic, assign) UIEdgeInsets textEdgeInsetsDeclared In
TuSDKPFTextView.h
textMaxScale
文字最大放大倍数 (相对于父视图) 默认 1.0
@property (nonatomic, assign) CGFloat textMaxScaleDeclared In
TuSDKPFTextView.h
– initWithFrame:textFont:textColor:
初始化方法
- (instancetype)initWithFrame:(CGRect)frame textFont:(UIFont *)textFont textColor:(UIColor *)textColorParameters
frame |
View的frame |
|---|---|
textFont |
字体 |
textColor |
字体颜色 |
Return Value
textView对象
Declared In
TuSDKPFTextView.h
– changeText:
改变文字内容
- (void)changeText:(NSString *)textParameters
text |
文字内容 |
|---|
Declared In
TuSDKPFTextView.h
– changeTextColor:
改变文字颜色
- (void)changeTextColor:(UIColor *)textColorParameters
textColor |
文字颜色 |
|---|
Declared In
TuSDKPFTextView.h
– changeStrokeColor:
改变线条颜色
- (void)changeStrokeColor:(UIColor *)strokeColorParameters
strokeColor |
线条颜色 |
|---|
Declared In
TuSDKPFTextView.h
– changeTextBackgroudColor:
改变字体背景颜色
- (void)changeTextBackgroudColor:(UIColor *)textBackgroudColorParameters
textBackgroudColor |
字体背景颜色 |
|---|
Declared In
TuSDKPFTextView.h
– changeWritingDirection:
改变书写方向 参考 NSWritingDirectionAttributeName
- (void)changeWritingDirection:(NSArray<NSNumber*> *)writingDirectionParameters
writingDirection |
书写方向 |
|---|
Declared In
TuSDKPFTextView.h
– changeTextAlignment:
改变文字对齐方式
- (void)changeTextAlignment:(NSTextAlignment)textAlignmentParameters
textAlignment |
对齐方式 |
|---|
Declared In
TuSDKPFTextView.h
– resultsWithRegionRect:
获取文字处理结果
- (NSArray *)resultsWithRegionRect:(CGRect)regionRectParameters
regionRect |
图片选区范围 |
|---|
Return Value
贴纸处理结果
Declared In
TuSDKPFTextView.h
– hasSelectedItem
是否已经选中某一个文字
- (BOOL)hasSelectedItemReturn Value
YES:已经选中
Declared In
TuSDKPFTextView.h