Skip to content
Snippets Groups Projects
Commit 42e2f859 authored by Oliver Wiese's avatar Oliver Wiese
Browse files

Fix VENTokenfield

parent 0cd69e60
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ NS_ASSUME_NONNULL_BEGIN
@protocol VENTokenFieldDelegate <NSObject>
@optional
- (void)tokenField:(VENTokenField *)tokenField didEnterText:(NSString *)text;
- (void)tokenField:(VENTokenField *)tokenField didEnterText:(NSString *)text mail:(NSString *)email; // ????
- (void)tokenField:(VENTokenField *)tokenField didEnterText:(NSString *)text mail:(NSString *)email;
- (void)tokenField:(VENTokenField *)tokenField didDeleteTokenAtIndex:(NSUInteger)index;
- (void)tokenField:(VENTokenField *)tokenField didTappedTokenTwice:(NSUInteger)index;
- (void)tokenField:(VENTokenField *)tokenField didChangeText:(nullable NSString *)text;
......@@ -53,7 +53,8 @@ NS_ASSUME_NONNULL_BEGIN
@property (weak, nonatomic) id<VENTokenFieldDelegate> delegate;
@property (weak, nonatomic) id<VENTokenFieldDataSource> dataSource;
@property (strong, nonatomic, nonnull) NSMutableArray<NSString *> *mailAddressTokens;
@property (strong, nonatomic, nonnull) NSMutableArray<NSString *> *textTokens;
@property (strong, nonatomic, nonnull) NSMutableArray<NSString *> *mailTokens;
@property (atomic) BOOL readOnly;
- (void)reloadData;
......
......@@ -86,7 +86,8 @@ static const CGFloat VENTokenFieldDefaultMaxHeight = 2000.0;//150.0;
- (void)setUpInit
{
_readOnly = false;
_mailAddressTokens = [NSMutableArray array];
_textTokens = [NSMutableArray array];
_mailTokens = [NSMutableArray array];
_enter = false;
// Set up default values.
_autocorrectionType = UITextAutocorrectionTypeNo;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment