UITableView数据源代理方法

来源:互联网 发布:经常用到的c语言函数库 编辑:程序博客网 时间:2024/05/17 08:37

必须实现的两个代理方法:

//每组有多少行数据

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;

//每行数据要显示的内容

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;


原创粉丝点击