UINavgationController容器中的storybo
2015-12-17 本文已影响61人
若水V_V
当在导航控制器容器push到另一个storyboard时,出现storyboard中的textView不能从第一行输入文字而是往下偏移了好几行。

原因:容器类会自动设置content insets来避免scrollview(包括它的子类)内容重叠,这只会发生在scrollview作为主视图或者首个子视图。
解决办法:self.automaticallyAdjustsScrollViewInsets属性设置为no.