iOS9 自定义 UITableViewCell 中的分隔符插入错误

iOS9 Wrong separator insets in custom UITableViewCell

我想将我的自定义 uitableviewcell 更改为 xcode7 和 iOS9 下的自动布局。
单元格中的子视图很好 autolayouted.But 分隔线总是有一个巨大的右插图。
我试过 setLayoutMargins、setSeparatorInset、preservesSuperViewLayoutMargins、cellLayoutMarginsFollowReadableWidth。但它们根本不起作用。
有人遇到同样的问题吗?

谢谢。

更新: 我的 xib 文件是从 iOS7 开始构建的。是不是太老了不能配置?

我找到问题了。
原因是我之前在mycell.m中覆盖了-(void)layoutSubviews。
评论一下,就可以了。