当scrollView以及其子孙想要将内容不自动偏移到状态栏以下时。使用以下属性。iOS 11以后才有的
if (@available(iOS 11.0, *)) {
self.scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
当scrollView以及其子孙想要将内容不自动偏移到状态栏以下时。使用以下属性。iOS 11以后才有的
if (@available(iOS 11.0, *)) {
self.scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
本文标题:2019-02-25
本文链接:https://www.haomeiwen.com/subject/sjrnyqtx.html
网友评论