iPhone中的表格视图中的复选框单元格 [英] check box cell in table view in iPhone

查看:82
本文介绍了iPhone中的表格视图中的复选框单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用UITableView,并且有一个与每一行项目相关的复选框.

当按钮发生点击事件时,它应该在UITableView中生成一个检查项目列表.

我无法执行此操作,请帮帮我

I was working with the UITableView and I had a checkbox related to every row of items.

On click event of a button, it should generate a list of checked items in the UITableView.

I am not able to do so, Please help me out

推荐答案

您好,

在按钮的单击事件上,写[tableObject reloadData];

现在可以在tableView:cellForRowAtIndexPath方法中编写逻辑以放置一个复选标记或使用表附件视图放置一个复选标记.
Hi,

On click event of a button write [tableObject reloadData];

now in tableView:cellForRowAtIndexPath method write logic to put a checkmark or use table accessory view to put a check mark.


这篇关于iPhone中的表格视图中的复选框单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆