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

working on compose mail

parent 34b8fe42
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,8 +53,7 @@ NS_ASSUME_NONNULL_BEGIN
@property (weak, nonatomic) id<VENTokenFieldDelegate> delegate;
@property (weak, nonatomic) id<VENTokenFieldDataSource> dataSource;
@property (strong, nonatomic, nonnull) NSMutableArray<NSString *> *textTokens;
@property (strong, nonatomic, nonnull) NSMutableArray<NSString *> *mailTokens;
@property (strong, nonatomic, nonnull) NSMutableArray<NSString *> *mailAddressTokens;
@property (atomic) BOOL readOnly;
- (void)reloadData;
......
......@@ -86,8 +86,7 @@ static const CGFloat VENTokenFieldDefaultMaxHeight = 2000.0;//150.0;
- (void)setUpInit
{
_readOnly = false;
_textTokens = [NSMutableArray array];
_mailTokens = [NSMutableArray array];
_mailAddressTokens = [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.
Please register or to comment