UITextField(FWApplication)
@interface UITextField (FWApplication)
#pragma mark - Menu
// 是否禁用长按菜单(拷贝、选择、粘贴等),默认NO
@property (nonatomic, assign) BOOL fw_menuDisabled NS_REFINED_FOR_SWIFT;
#pragma mark - Select
// 自定义光标颜色
@property (nonatomic, strong, null_resettable) UIColor *fw_cursorColor NS_REFINED_FOR_SWIFT;
// 自定义光标大小,不为0才会生效,默认zero不生效
@property (nonatomic, assign) CGRect fw_cursorRect NS_REFINED_FOR_SWIFT;
// 获取及设置当前选中文字范围
@property (nonatomic, assign) NSRange fw_selectedRange NS_REFINED_FOR_SWIFT;
// 移动光标到最后
- (void)fw_selectAllRange NS_REFINED_FOR_SWIFT;
// 移动光标到指定位置,兼容动态text赋值
- (void)fw_moveCursor:(NSInteger)offset NS_REFINED_FOR_SWIFT;
@end
Undocumented
-
Undocumented
Declaration
Objective-C
@property (nonatomic) BOOL fw_menuDisabled
-
Undocumented
Declaration
Objective-C
@property (nonatomic, strong, null_resettable) UIColor *fw_cursorColor
-
Undocumented
Declaration
Objective-C
@property (nonatomic) CGRect fw_cursorRect
-
Undocumented
Declaration
Objective-C
@property (nonatomic) NSRange fw_selectedRange
-
Undocumented
Declaration
Objective-C
- (void)fw_selectAllRange NS_REFINED_FOR_SWIFT;
-
Undocumented
Declaration
Objective-C
- (void)fw_moveCursor:(NSInteger)offset NS_REFINED_FOR_SWIFT;