ios - 使用 rxswift 禁用 UITableViewCell 编辑模式

标签 ios swift2 rx-swift

我使用 rxswift 将我的数据源绑定(bind)到 tableview,但默认情况下单元格在我这样做时是可编辑的,我如何禁用该功能?

这里是我得到的tableview的例子:

here the example of tableview what I got

最佳答案

你在使用 RxDataSources 吗?您可以按照以下方式配置您的数据源

dataSource.canEditRowAtIndexPath = {dataSource, indexPath in false }

关于ios - 使用 rxswift 禁用 UITableViewCell 编辑模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37985390/

相关文章:

iphone - 我们可以在 UITableViewCell 中添加 ScrollView 吗?

ios - 应用进入后台IOS?

ios - 无法找到 Cocoapod MotionKit 框架派生数据

ios - 使用 RxSwift 注册两个自定义单元格

swift - Rx swift : Extra argument 'onError' when subscribing on an Observable<String>

ios - 为什么带有 __weak 限定符的变量会保留一个对象?

ios - 打开语音时未调用 didSelectRowAtIndexpath

swift - 在 Swift 中的 PFQuery TableView Controller 中查询关系数据

ios - RxSwift 验证按钮颜色设置不正确

objective-c - iOS 的 SSH2 库