ios - 表格 View ,如何将删除按钮放在最前面?

标签 ios uitableview ios7

升级到 Xcode 5 后,删除按钮出现在表格 View 中的单元格内容后面。

如何让它显示在单元格内容之上? 过去,在表格单元格上从右向左滑动用于在单元格内容上弹出删除按钮,现在它出现在后面。

enter image description here

内容被添加到“内容 View ”

enter image description here

最佳答案

我打算把它作为一个答案,这样它就比评论更突出(但是 iMartin,你做到了)。

我在单元格中设置的约束导致 View 无法随“删除”按钮一起移动。我为我的 UITableViewCell 子类选择了 ContentView 的每个 subview 并做了:

  1. 编辑器 → 解决自动布局问题 → 清除约束
  2. 编辑器 → 解决自动布局问题 → 重置为建议的约束

这为我重新制作了所有约束,并正确配置它们以允许“删除”按钮移动内容。

关于ios - 表格 View ,如何将删除按钮放在最前面?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19083652/

相关文章:

jquery - iPhone iOS7 3D 选择/下拉功能

iphone - 如何通过单击 UIPageControl 的点来更改页面

ios - 解析 Facebook 登录 Swift 3.0

ios - Swift:将回调传递给结构实例

ios - 如何在我的 MPMoviePlayerController 实例中添加音量控制

objective-c - setCollectionViewLayout :animated causing debug error: Snapshotting a view that has not been rendered results in an empty snapshot

ios - 在 iOS 8 上获取屏幕尺寸

ios - 如何使用 Autoresizing Masks 对 UIImageView 进行舍入?

ios - Swift - 如何将数据从 UITableViewCell 类传递到 UIViewController

ios - echarts(iOS图表)未显示在自定义uitableviewcell中