Closed LeoNatan closed 11 years ago
I'm not setting aside time to work on this control until iOS 7 is closer to public release. I'm happy to merge pull requests if people fix this stuff, otherwise it'll have to wait :)
I understand your position, but you should strive to have compatibility before GM is released. From a really quick look, the problem seems to stem from textRectForBounds:
; it seems textviews behave somewhat differently with the returned value.
I think I know why this happening. According to my observation, in iOS7, UITextField seems set it's content vertical alignment to center. Because the text position grow linear with the height of the textfield. So I try to add this line of code in the - (void)setup
method on TITokenField
class implementation:
self.contentVerticalAlignment = UIControlContentVerticalAlignmentTop;
I have test it on iOS 5, 6, and 7. Now the TITokenField behave normally. It seems that prior to iOS 7, the content's vertical alignment was set to top. This statement is just a conclusion resulted from my observation though. Still need to confirm this when NDA is revoked to backup this conclusion.
Ah wonderful :)
Nice one guys.
I'm glad that I can help :)
Wonderful it worked.
Good solution. Its working fine.
Thanks your fix! It's working fine.
kurotsukikaitou...Thanks for the fix. You just saved me hours of debug...:-)
thank. you.
@kurotsukikaitou Thanks a bunch..
many thanks!
This issue does not occur on iOS 6.