iOS Swift 4如何更改UITableView中的AdjustedContentInset?

时间:2018-08-26 18:11:27

标签: ios swift uitableview uiscrollview uiedgeinsets

我有一个TableView

如果键盘会/不会显示,则adjustedContentInset.bottom的横向变化。

如果在显示键盘时再次点击textfield,它将adjustedContentInset.bottom改回0

反过来,在纵向模式下adjustedContentInset.bottom中的任何内容都没有变化-效果很好。

我还将故事板中的“内容插入”调整行为设置为“从不”。

将全为零的UIEdgeInset分配给contentInset不会有任何改变。

我注意到adjustedContentInsetcontentInset不同。

它们可以同时显示不同的值吗?

如何防止adjustedContentInset.bottom更改?

我总是希望所有插入值都为零。

0 个答案:

没有答案