BBASingleLineEditingViewController.h
1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// BBASingleLineEditingViewController.h
// BBAComs
//
// Created by 白昆仑 on 16/5/16.
//
//
#import <UIKit/UIKit.h>
#import "BBAUIViewController.h"
@class BBAEditingTextField;
__attribute__ ((deprecated("该类已被废弃,请勿再使用")))
@interface BBASingleLineEditingViewController : BBAUIViewController
@property(nonatomic, copy, readwrite)NSString *placeholder;//编辑框背景提示字
@property(nonatomic, copy, readwrite)NSString *initialText;//初始编辑框文字
@property(nonatomic, readwrite)NSInteger maxTextNumber;//maxTextNumber * 2个字节的输入字符串限制,该值默认为12
@property(nonatomic, copy, readwrite)NSString *editingPromptText;//编辑框左侧的提示信息
@property(nonatomic, copy, readwrite)NSString *bottomPromptText;//编辑框下面的提示信息
@property(nonatomic, assign) BOOL shouldShowNumberOfWords;//是否显示字数 default is NO.
@property(nonatomic, assign) BOOL shouldForbidEmptySave;//是否禁止保存空值 default is NO.
@property (nonatomic, strong) UIButton *saveButtn;
@property (nonatomic, strong, readwrite)BBAEditingTextField *textField;
/// 是否显示返回导航按钮 (默认为YES)
@property(nonatomic, assign) BOOL showDefaultBackItem;
/// 是否忽略全空白输入
@property(nonatomic, assign) BOOL shouldIgnoreEmptyInput;
- (instancetype)init __attribute__((unavailable("Please use sharedInstance to obtain an instance.")));
- (instancetype)initWithTitle:(NSString *)title;
/*
子类必须重写该方法,用于自定义获取字符串后的处理逻辑
*/
- (void)handleString:(NSString *)text;
- (void)saveAction:(id)sender;
+ (int)cTextLengthWithString:(NSString*)strtemp;
@end