TuSDKPFTextItemView Class Reference

Inherits from UIView
Conforms to TuSDKPFTextItemViewInterface
Declared in TuSDKPFTextView.h

Overview

贴纸元件视图

  textView

图片视图

@property (nonatomic, readonly) UILabel *textView

Declared In

TuSDKPFTextView.h

  cancelButton

取消按钮

@property (nonatomic, readonly) UIButton *cancelButton

Declared In

TuSDKPFTextView.h

  turnButton

旋转缩放按钮

@property (nonatomic, readonly) UIButton *turnButton

Declared In

TuSDKPFTextView.h

  stretchButton

宽度拉伸按钮

@property (nonatomic, readonly) UIButton *stretchButton

Declared In

TuSDKPFTextView.h

  delegate

贴纸元件视图委托

@property (nonatomic, weak) id<TuSDKPFTextItemViewDelegate> delegate

Declared In

TuSDKPFTextView.h

  minScale

最小缩小比例(默认: 0.5f <= mMinScale <= 1)

@property (nonatomic, assign) CGFloat minScale

Declared In

TuSDKPFTextView.h

  textBorderWidth

边框宽度

@property (nonatomic, assign) CGFloat textBorderWidth

Declared In

TuSDKPFTextView.h

  textBorderColor

边框颜色

@property (nonatomic, retain) UIColor *textBorderColor

Declared In

TuSDKPFTextView.h

  textColor

文字颜色

@property (nonatomic, retain) UIColor *textColor

Declared In

TuSDKPFTextView.h

  selected

选中状态

@property (nonatomic, assign) BOOL selected

Declared In

TuSDKPFTextView.h

  textString

文字内容

@property (nonatomic, strong) NSString *textString

Declared In

TuSDKPFTextView.h

  textSticker

贴纸数据对象

@property (nonatomic, retain) TuSDKPFSticker *textSticker

Declared In

TuSDKPFTextView.h

  textParaStyle

文字样式信息设置

@property (nonatomic, strong) NSMutableParagraphStyle *textParaStyle

Declared In

TuSDKPFTextView.h

  enableUnderline

是否显示下划线

@property (nonatomic, assign) BOOL enableUnderline

Declared In

TuSDKPFTextView.h

  writingDirection

书写方向 参考 NSWritingDirectionAttributeName

@property (nonatomic, strong) NSArray<NSNumber*> *writingDirection

Declared In

TuSDKPFTextView.h

  textAlignment

文字对齐方式

@property (nonatomic, assign) NSTextAlignment textAlignment

Declared In

TuSDKPFTextView.h

  textBackgroudColor

文字背景色

@property (nonatomic, strong) UIColor *textBackgroudColor

Declared In

TuSDKPFTextView.h

  textStrokeColor

线条颜色

@property (nonatomic, strong) UIColor *textStrokeColor

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

– initWithTextFont:

初始化字体信息

- (void)initWithTextFont:(UIFont *)textFont

Parameters

textFont

字体

Declared In

TuSDKPFTextView.h

– resetTextEdge

重置文字视图边缘距离

- (void)resetTextEdge

Declared In

TuSDKPFTextView.h

– resultWithRegionRect:

获取贴纸处理结果

- (TuSDKPFStickerResult *)resultWithRegionRect:(CGRect)regionRect

Parameters

regionRect

图片选区范围

Return Value

贴纸处理结果

Declared In

TuSDKPFTextView.h