UITableView中常用方法
2015-10-12 16:37
507 查看
/ 当某行没选择时候,调用此方法
- (void)tableView:(UITableView *)tableViewdidSelectRowAtIndexPath:(NSIndexPath *)indexPath
// 初始化每行时候,调用此方法
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath*)indexPath
// 用于返回table中有几个分组
- (NSInteger )numberOfSectionsInTableView:(UITableView *)tableView;
// 用于返回每个分组中有多少行
- (NSInteger )tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
// 用于设置指定行的行高
- (CGFloat )tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
// 用于设置分组头的高度
- (CGFloat )tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
//用于设置分组的标题
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
//用于返回分组的视图
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
- (void)tableView:(UITableView *)tableViewdidSelectRowAtIndexPath:(NSIndexPath *)indexPath
// 初始化每行时候,调用此方法
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath*)indexPath
// 用于返回table中有几个分组
- (NSInteger )numberOfSectionsInTableView:(UITableView *)tableView;
// 用于返回每个分组中有多少行
- (NSInteger )tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
// 用于设置指定行的行高
- (CGFloat )tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
// 用于设置分组头的高度
- (CGFloat )tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
//用于设置分组的标题
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
//用于返回分组的视图
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
相关文章推荐
- Android 通过配置相同的UUid访问不同进程小结
- iOS UITableView
- ZooKeeper Programmer's Guide(ZooKeeper 3.4 Documentation)个人翻译
- CodeForces - 527D Clique Problem (图,贪心)
- Using Ambari Blueprint to Provision HDP automatically
- Android中UID机制和共享进程
- UITableView 多选删除功能 IOS
- UIPickerView
- The following classes could not be found - EditText (Change to android.widget.EditText, Fix Build Pa
- UINavigationController和页面间传值
- Java设计模式 —— 建造模式 (Builder)
- NSIS 的 Modern UI 教程(二)
- UI:使View背景逐渐变暗的方法
- BlueDroid 蓝牙启动流程分析
- Hdu 5496 Beauty of Sequence (组合数)
- zoj 3911 Prime Query (ZOJ Monthly, October 2015 - I)
- 关于UITableView的section最后一个分割线的优化
- easyui表单提交,后台获取不到值
- When START-OF-SELECTION is Not Required
- Request获取url各种信息的方法