zoukankan      html  css  js  c++  java
  • tableView上出现空白的解决办法

    创建tableView后,出现如下效果

         

    解决办法:

        self.automaticallyAdjustsScrollViewInsets = NO;   

       个人认为,应该是取消系统默认行为,保证界面区域问题(主要针对iOS7.0以后)

    产生原因:

    automaticallyAdjustsScrollViewInsets

    Specifies whether or not the view controller should automatically adjust its scroll view insets.

    @property(nonatomic, assign) BOOL automaticallyAdjustsScrollViewInsets

    Discussion

    Default value is YES, which allows the view controller to adjust its scroll view insets in response to the screen areas consumed by the status bar, navigation bar, and toolbar or tab bar. Set toNO if you want to manage scroll view inset adjustments yourself, such as when there is more than one scroll view in the view hierarchy.

    Availability

    • Available in iOS 7.0 and later.

    Declared In

    UIViewController.h

    让明天,不后悔今天的所作所为
  • 相关阅读:
    延迟加载和缓存
    动态SQL
    Mybatis框架模糊查询+多条件查询
    mybatis增删改
    初始mybatis(二)
    Struts2框架和SpringMvc框架的区别
    MyBatis框架与Hibernate 框架的区别
    初始mybatis
    Servlet
    find命令使用
  • 原文地址:https://www.cnblogs.com/-yun/p/4723219.html
Copyright © 2011-2022 走看看