|
@@ -158,8 +158,8 @@ UIKIT_EXTERN NSString *const YYTextTruncationToken; ///< Horizontal ellipsis (U+
|
|
|
|
|
|
@param containerView The text container view (such as YYLabel/YYTextView).
|
|
@param containerView The text container view (such as YYLabel/YYTextView).
|
|
@param text The whole text.
|
|
@param text The whole text.
|
|
- @param range The text range in `text`.
|
|
|
|
- @param rect The text frame in `containerView`.
|
|
|
|
|
|
+ @param range The text range in `text` (if no range, the range.location is NSNotFound).
|
|
|
|
+ @param rect The text frame in `containerView` (if no data, the rect is CGRectNull).
|
|
*/
|
|
*/
|
|
typedef void(^YYTextAction)(UIView *containerView, NSAttributedString *text, NSRange range, CGRect rect);
|
|
typedef void(^YYTextAction)(UIView *containerView, NSAttributedString *text, NSRange range, CGRect rect);
|
|
|
|
|
|
@@ -332,13 +332,13 @@ typedef void(^YYTextAction)(UIView *containerView, NSAttributedString *text, NSR
|
|
|
|
|
|
/**
|
|
/**
|
|
Tap action when user tap the highlight, default is nil.
|
|
Tap action when user tap the highlight, default is nil.
|
|
- If the value is nil, YYTextView or YYLabel will ask it's delegate to deal with tap action.
|
|
|
|
|
|
+ If the value is nil, YYTextView or YYLabel will ask it's delegate to handle the tap action.
|
|
*/
|
|
*/
|
|
@property (nullable, nonatomic, copy) YYTextAction tapAction;
|
|
@property (nullable, nonatomic, copy) YYTextAction tapAction;
|
|
|
|
|
|
/**
|
|
/**
|
|
Long press action when user long press the highlight, default is nil.
|
|
Long press action when user long press the highlight, default is nil.
|
|
- If the value is nil, YYTextView or YYLabel will ask it's delegate to deal with long press action.
|
|
|
|
|
|
+ If the value is nil, YYTextView or YYLabel will ask it's delegate to handle the long press action.
|
|
*/
|
|
*/
|
|
@property (nullable, nonatomic, copy) YYTextAction longPressAction;
|
|
@property (nullable, nonatomic, copy) YYTextAction longPressAction;
|
|
|
|
|