Skip to content

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

@dannyl07

Description

@dannyl07

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];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions