10#import <UIKit/UIKit.h>
12NS_ASSUME_NONNULL_BEGIN
19@protocol ChallengeTextInputViewDelegate <NSObject>
35@property(nonatomic, strong, nullable) UITextField *
nameBox;
37@property(nonatomic, strong, nullable) UIButton *
changeBtn;
40@property(nonatomic, weak, nullable) id<ChallengeTextInputViewDelegate>
aDelegate;
43@property(nonatomic, readonly, nullable) NSString *
inputText;
56- (void)setDefaultText:(nullable NSString *)text;
65- (BOOL)isPictText:(nullable NSString *)text;
A single-line name-entry field paired with a commit button, clamping the entry to at most 20 characte...
Definition ChallengeTextInputView.h:32
void resetView()
Clears the field text, the backed-up text, and the button image.
Definition ChallengeTextInputView.m:47
UIButton * changeBtn
The commit button.
Definition ChallengeTextInputView.h:37
id< ChallengeTextInputViewDelegate > aDelegate
The delegate told when the entry is committed.
Definition ChallengeTextInputView.h:40
UITextField * nameBox
The name-entry text field.
Definition ChallengeTextInputView.h:35
NSString * inputText
The last backed-up field text, clamped to 20 characters.
Definition ChallengeTextInputView.h:43