uitableviewcell 和 uibutton
2013-09-02 15:29
92 查看
如果cell上面只有一个button 可以设置button.tag=IndexPath.Row;得到当前点击的行数,设置button属性的时候,可以设置一个全局的button来记住当前点击的button,
UITableViewCell *clickCell=(UITableViewCell*)[[btn superview] superview];
得到当前点击的 button所在的cell
UITableViewCell *clickCell=(UITableViewCell*)[[btn superview] superview];
得到当前点击的 button所在的cell
相关文章推荐
- UItableViewCell里面的UIButton点击不响应的诡异现象
- iOS UITableViewCell 几个方法的优先级
- UITableView动态改变Cell高度
- ios表视图之UITableViewCellAccessoryCheckmark单选、多选状态保存
- UITableView优化——UITableViewCell高度的优化
- UITableView默认选中第一个cell
- how to register a cell for UITableViewCell
- UITableView UITableViewCell NSIndexPath
- iOS UI 的坑:不要 remove UITableViewCell 的 contentView
- UITableViewCellStyle 四种样式
- 修改UITableViewCell中ImageView的大小
- 结合AutoLayout实践iOS8上UITableViewCell高度的自适应
- UITableViewCell点击时背景颜色
- iOS中 UITableViewRowAction tableViewcell编辑状态下的功能 UI技术分享
- swift UITableViewCell插入单无格
- UITableViewCellSeparatorStyleNone去掉分割线
- UItableViewCell中有button处理
- UITableViewCell自适应高度
- - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath不执行的问题
- IOS8 UITableViewCell线填充方法 不显示多余cell分割线