TuSDKPFTextView Class Reference

Inherits from UIView
Conforms to TuSDKPFTextItemViewDelegate
Declared in TuSDKPFTextView.h

  textString

初始化提示信息

@property (nonatomic, retain) NSString *textString

Declared In

TuSDKPFTextView.h

  textParaStyle

初始化文字样式信息设置

@property (nonatomic, strong) NSMutableParagraphStyle *textParaStyle

Declared In

TuSDKPFTextView.h

  textCount

当前已使用贴纸总数

@property (nonatomic, readonly) NSUInteger textCount

Declared In

TuSDKPFTextView.h

  textBorderWidth

边框宽度

@property (nonatomic, assign) CGFloat textBorderWidth

Declared In

TuSDKPFTextView.h

  textBorderColor

边框颜色

@property (nonatomic, retain) UIColor *textBorderColor

Declared In

TuSDKPFTextView.h

  textEdgeInsets

文字边距 默认 (0,0,0,0)

@property (nonatomic, assign) UIEdgeInsets textEdgeInsets

Declared In

TuSDKPFTextView.h

  textMaxScale

文字最大放大倍数 (相对于父视图) 默认 1.0

@property (nonatomic, assign) CGFloat textMaxScale

Declared In

TuSDKPFTextView.h

– initWithFrame:textFont:textColor:

初始化方法

- (instancetype)initWithFrame:(CGRect)frame textFont:(UIFont *)textFont textColor:(UIColor *)textColor

Parameters

frame

View的frame

textFont

字体

textColor

字体颜色

Return Value

textView对象

Declared In

TuSDKPFTextView.h

– appendText

添加一个文字

- (void)appendText

Declared In

TuSDKPFTextView.h

– changeText:

改变文字内容

- (void)changeText:(NSString *)text

Parameters

text

文字内容

Declared In

TuSDKPFTextView.h

– changeTextColor:

改变文字颜色

- (void)changeTextColor:(UIColor *)textColor

Parameters

textColor

文字颜色

Declared In

TuSDKPFTextView.h

– changeStrokeColor:

改变线条颜色

- (void)changeStrokeColor:(UIColor *)strokeColor

Parameters

strokeColor

线条颜色

Declared In

TuSDKPFTextView.h

– changeTextBackgroudColor:

改变字体背景颜色

- (void)changeTextBackgroudColor:(UIColor *)textBackgroudColor

Parameters

textBackgroudColor

字体背景颜色

Declared In

TuSDKPFTextView.h

– changeWritingDirection:

改变书写方向 参考 NSWritingDirectionAttributeName

- (void)changeWritingDirection:(NSArray<NSNumber*> *)writingDirection

Parameters

writingDirection

书写方向

Declared In

TuSDKPFTextView.h

– changeTextAlignment:

改变文字对齐方式

- (void)changeTextAlignment:(NSTextAlignment)textAlignment

Parameters

textAlignment

对齐方式

Declared In

TuSDKPFTextView.h

– resultsWithRegionRect:

获取文字处理结果

- (NSArray *)resultsWithRegionRect:(CGRect)regionRect

Parameters

regionRect

图片选区范围

Return Value

贴纸处理结果

Declared In

TuSDKPFTextView.h

– hasSelectedItem

是否已经选中某一个文字

- (BOOL)hasSelectedItem

Return Value

YES:已经选中

Declared In

TuSDKPFTextView.h

– toggleUnderline

修改下划线状态

- (void)toggleUnderline

Declared In

TuSDKPFTextView.h