美文网首页
2019-02-25

2019-02-25

作者: Leon1024 | 来源:发表于2019-02-25 20:33 被阅读0次

    当scrollView以及其子孙想要将内容不自动偏移到状态栏以下时。使用以下属性。iOS 11以后才有的

    if (@available(iOS 11.0, *)) {
            self.scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;

    相关文章

      网友评论

          本文标题:2019-02-25

          本文链接:https://www.haomeiwen.com/subject/sjrnyqtx.html