thermogl / TITokenField

An iOS version of the NSTokenField (See To: field in Mail and Messages).
http://thermoglobalnuclearwar.com/opensource/
599 stars 172 forks source link

On iOS 7+, scrollView's contentOffset is set so that the table cannot be scrolled to top #86

Open dannyl07 opened 10 years ago

dannyl07 commented 10 years ago

See attached screenshot. screen-181

Looks like the TITokenField has been pushed to the top so it's under my UINavigationBar.

I was able to fix this by commenting out line 843-844 in TITokenField.m. Not sure what is the purpose of these two lines :

    CGFloat offset = ((_numberOfLines == 1 || !flag) ? 0 : _tokenCaret.y - floor(self.font.lineHeight * 4 / 7) + 1);
    [scrollView setContentOffset:CGPointMake(0, self.frame.origin.y + offset) animated:animated];
RishabhTayal commented 10 years ago

I had the same issue...thanks for the solution.