ios - When a NavigationController push to a TabBarController , Why after the first tab bar item , TableViewController's contentInset is wrong -


my tabbaritems uitableviewcontroller.

when navigationcontroller push in tabbarcontroller, after first items, tableview.contentinset uiedgeinsetsmake(0, 0, 0, 0)

but sometimes, when set tableview.contentinset = uiedgeinsetsmake(64, 0, 0, 0). tableview.contentinset became uiedgeinsetsmake(128, 0, 0, 0).

uncheck adjust scroll view insets in view controller attributes, or self.automaticallyadjustsscrollviewinsets = no if not using storyboard. introduced in ios 7, might version check if needed.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -