【storyboard创建tableView步骤】
1.设置根视图
2.选中视图,设置导航栏editor/embed in/navigationcontroller
3.cell设置Identifier标识
4.创建tableviewcontroller类,跟tableviewcontroller控件关联上
5.storyboard会自动遵守<</span>UITabBarControllerDelegate,UITableViewDataSource>
6.只需要实现必要的协议方法即可。
 

 
【UITableView属性】
  • UITableViewStyle 样式
     UITableViewStylePlain,//只有一个分区
     UITableViewStyleGrouped //可以有多个分区
 

Returns the style of the receiver. (read-only)

Declaration

SWIFT

var style: UITableViewStyle { get }

OBJECTIVE-C

@property(nonatomic, readonly) UITableViewStylestyle

The height of each row (table cell) in the receiver.

Declaration

SWIFT

var rowHeight: CGFloat

OBJECTIVE-C

@property(nonatomic) CGFloatrowHeight

The style for table cells used as separators.

Declaration

SWIFT

var separatorStyle: UITableViewCellSeparatorStyle

OBJECTIVE-C

@property(nonatomic) UITableViewCellSeparatorStyleseparatorStyle

     UITableViewCellSeparatorStyleNone,// 没分割线
     UITableViewCellSeparatorStyleSingleLine,//单线
     UITableViewCellSeparatorStyleSingleLineEtched
// 双线?
 

The color of separator rows in the table view.

Declaration

SWIFT

var separatorColor: UIColor!

OBJECTIVE-C

@property(nonatomic, retain) UIColor*separatorColor

 

The effect applied to table separators.

Declaration

SWIFT

@NSCopying var separatorEffect: UIVisualEffect?

OBJECTIVE-C

@property(nonatomic, copy) UIVisualEffect*separatorEffect

 

The background view of the table view.

Declaration

SWIFT

var backgroundView: UIView?

OBJECTIVE-C

@property(nonatomic, readwrite, retain) UIView*backgroundView

 

Specifies the default inset of cell separators.

Declaration

SWIFT

var separatorInset: UIEdgeInsets

OBJECTIVE-C

@property(nonatomic) UIEdgeInsetsseparatorInset

 

Returns an accessory view that is displayed above the table.

Declaration

SWIFT

var tableHeaderView: UIView?

OBJECTIVE-C

@property(nonatomic, retain) UIView*tableHeaderView



Returns an accessory view that is displayed below the table.

Declaration

SWIFT

var tableFooterView: UIView?

OBJECTIVE-C

@property(nonatomic, retain) UIView*tableFooterView

 

The height of section headers in the receiving table view.

Declaration

SWIFT

var sectionHeaderHeight: CGFloat

OBJECTIVE-C

@property(nonatomic) CGFloatsectionHeaderHeight

 

The height of section footers in the receiving table view.

Declaration

SWIFT

var sectionFooterHeight: CGFloat

OBJECTIVE-C

@property(nonatomic) CGFloatsectionFooterHeight

 

The estimated height of rows in the table view.

Declaration

SWIFT

var estimatedRowHeight: CGFloat

OBJECTIVE-C

@property(nonatomic) CGFloatestimatedRowHeight

 

The estimated height of section headers in the table view.

Declaration

SWIFT

var estimatedSectionHeaderHeight: CGFloat

OBJECTIVE-C

@property(nonatomic) CGFloatestimatedSectionHeaderHeight

The estimated height of section footers in the table view.

Declaration

SWIFT

var estimatedSectionFooterHeight: CGFloat

OBJECTIVE-C

@property(nonatomic) CGFloatestimatedSectionFooterHeight

 

UITableView类用法大全:UITableView属性的更多相关文章

  1. 继承自UITableView的类自带tableView属性,不需要在创建该属性,因为父类UITableView已经创建.

      继承自UITableView的类自带tableView属性,不需要在创建该属性,因为父类UITableView已经创建.   https://www.evernote.com/shard/s227 ...

  2. MVC5 + EF6 + Bootstrap3 (9) HtmlHelper用法大全(下)

    文章来源:Slark.NET-博客园 http://www.cnblogs.com/slark/p/mvc5-ef6-bs3-get-started-httphelper-part2.html 上一节 ...

  3. MVC5 + EF6 + Bootstrap3 (8) HtmlHelper用法大全(上)

    文章来源:Slark.NET-博客园 http://www.cnblogs.com/slark/p/mvc5-ef6-bs3-get-started-httphelper-part1.html 上一节 ...

  4. MVC中HtmlHelper用法大全参考

    MVC中HtmlHelper用法大全参考 解析MVC中HtmlHelper控件7个大类中各个控件的主要使用方法(1) 2012-02-27 16:25 HtmlHelper类在命令System.Web ...

  5. 转帖: 一份超全超详细的 ADB 用法大全

    增加一句 连接 网易mumu模拟器的方法 adb  connect 127.0.0.1:7555 一份超全超详细的 ADB 用法大全 2016年08月28日 10:49:41 阅读数:35890 原文 ...

  6. 超全超详细的 ADB 用法大全

    原文地址:原文地址 基本用法 命令语法 为命令指定目标设备 启动/停止 查看 adb 版本 以 root 权限运行 adbd 指定 adb server 的网络端口 设备连接管理 查询已连接设备/模拟 ...

  7. ADB Usage Complete / ADB 用法大全

    ADB,即 Android Debug Bridge,它是 Android 开发/测试人员不可替代的强大工具,也是 Android 设备玩家的好玩具. 持续更新中,欢迎提 PR 和 Issue 补充指 ...

  8. Awesome Adb——一份超全超详细的 ADB 用法大全

    https://github.com/mzlogin/awesome-adb https://www.cnblogs.com/bravesnail/articles/5850335.html     ...

  9. MVC HtmlHelper用法大全

    MVC HtmlHelper用法大全HtmlHelper用来在视图中呈现 HTML 控件.以下列表显示了当前可用的一些 HTML 帮助器. 本主题演示所列出的带有星号 (*) 的帮助器. ·Actio ...

随机推荐

  1. [Lua]基于cc.load('mvc') .ViewBase索引资源方案

    local MainScene = class("MainScene", cc.load("mvc").ViewBase) MainScene.RESOURCE ...

  2. 24种设计模式--命令模式【Command Pattern】

    今天讲命令模式,这个模式从名字上看就很简单,命令嘛,老大发命令,小兵执行就是了,确实是这个意思,但是更深化了,用模式来描述真实世界的命令情况.正在看这本书的你,我猜测分为两类:已经工作的和没有工作的, ...

  3. Android 中LinearLayout控件属性

    id             为控件指定相应的ID        text           指定控件当中显示的文字,需要注意的是,这里尽量使用strings.xml文件当中的字符        g ...

  4. 机器学习系列(17)_Yelper推荐系统

     1. 我们为什么需要推荐系统?“推荐”可是个当红话题.Netflix愿意用百万美金召求最佳的电影推荐算法,Facebook也为了登陆时的推荐服务开发了上百个项目,遑论现在市场上各式各样的应用都需要个 ...

  5. Centos6.5最小化安装:配置网络和自启动服务

    参考http://www.111cn.net/sys/CentOS/56456.htm 1.开启网络连接,禁止IPV6启用 1.开启网络连接 vi  /etc/sysconfig/network-sc ...

  6. phpexcel的写出操作(生成excel表)

    /* thinkphp3.2 ThinkPHP/Library/Org/Util/ 放置位置 http://files.cnblogs.com/files/youligai/phpexcel.zip  ...

  7. 17173php招聘

    学历要求:大专工作经历:4年↑薪资待遇:面议工作地点:北京市 资深PHP工程师岗位职责\\\"1.独立负责公司互联网产品的开发与测试2.主导负责相关系统维护,确保系统运行稳定可靠3.主导推动 ...

  8. dictionary ----- python

    Learn of dictionary,simple example of dictionary in  “Simple Python tutorial"------------------ ...

  9. BuzzSumo:什么样的文章能获得疯转?(基于1亿篇文章大数据分析)

    BuzzSumo:什么样的文章能获得疯转?(基于1亿篇文章大数据分析) 社交媒体追踪服务分析工具BuzzSumo,2014年5月前后对社交媒体上超过1亿篇文章进行了分析,试图找出一个答案: 什么样的内 ...

  10. 在linux中使用php将word文档转为pdf

    使用本教程需要在linux中安装openoffice,改页面中有详细的安装与使用教程(http://www.cnblogs.com/sustudy/p/3999628.html). 既然,你看了该教程 ...