在 tableviewcell 的xib 里面使用 autolayout 拖个控件之后 点击右下角的设置 会从-8开始 要点击上面的editor设置 假如要使用 右下角的话 点击右下角 然后 在ceonstrain to margins 打钩 (画布边缘)