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
Post a Comment