Closed CiraciNicolo closed 10 years ago
And also the TokenView is scrollable inside a cell, how can I prevent this?
Sounds like a bug - can you step through the various methods in debugging and see what's being called? Might shine some light on why tokens are being selected.
TITokenField is a UITextField, so it shouldn't scroll..?
I found the problem (sorry for the delay): when the cell is redraw the TITokenField did't get the event for UIControlEventEditingDidEnd. I just edited the resignFirstResponder method, and call it before I add all the token.
- (BOOL)resignFirstResponder {
[_tokenField sendActionsForControlEvents:UIControlEventEditingDidEnd];
return [_tokenField resignFirstResponder];
}
I've a TITokenField in the contentView of a UITabelViewCell, when the table reload its data the tokens became selected.
Actually my code is something like this:
But I still have the tokens selected. It's a bug, or I'm missing something?