zoonooz / ZFTokenField

iOS custom view that let you add token view inside like NSTokenField

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

the tokenfield doesn't increase size when full

bb-git opened this issue · comments

I am creating ZFTokenField programmatically, but the field doesn't increase size, when it's filled up with tokens.
There is also a strange issue with the placeholder, it is only displaying the first 3 character of "Enter here".

Its simple open your ZFTokenfield.m file and search for,
-(void)reloadData{}
In this function body you see this line,
self.textField.frame = (CGRect) {0,0,350,[self.dataSource lineHeightForTokenInField:self]};
In this line 350 is the writing text size you can set it with your desired size.
i think this will help you.