JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ChallengeTextInputView.h
Go to the documentation of this file.
1
9
10#import <UIKit/UIKit.h>
11
12NS_ASSUME_NONNULL_BEGIN
13
15
19@protocol ChallengeTextInputViewDelegate <NSObject>
20@optional
25- (void)commitText:(nonnull ChallengeTextInputView *)inputView;
26@end
27
32@interface ChallengeTextInputView : UIView <UITextFieldDelegate>
33
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;
44
49- (void)resetView;
50
56- (void)setDefaultText:(nullable NSString *)text;
57
65- (BOOL)isPictText:(nullable NSString *)text;
66
67@end
68
69NS_ASSUME_NONNULL_END
70
71// code: language=Objective-C
72// kate: hl Objective-C;
73// vim: set ft=objc :
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