扫码关注官方订阅号
iOS8上显示正常,iOS7上编辑状态不显示前面的减号,显示为空白,怎么解??
走同样的路,发现不同的人生
你是不是在自定义 Cell 时把内容添加到 self 而不是 self.contentView 了?
[self addSubview:] 和 [self.contentView addSubview:] 在 iOS 7 上还是有点区别的。
[self addSubview:]
[self.contentView addSubview:]
返回编辑类型时有问题正确的:
(UITableViewCellEditingStyle)tableView:(UITableView )tableView editingStyleForRowAtIndexPath:(NSIndexPath )indexPath{
return UITableViewCellEditingStyleDelete;}
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
你是不是在自定义 Cell 时把内容添加到 self 而不是 self.contentView 了?
[self addSubview:]
和[self.contentView addSubview:]
在 iOS 7 上还是有点区别的。返回编辑类型时有问题
正确的:
(UITableViewCellEditingStyle)tableView:(UITableView )tableView editingStyleForRowAtIndexPath:(NSIndexPath )indexPath
{
return UITableViewCellEditingStyleDelete;
}