//设置外框宽度 _mytableview.layer.borderWith = 1; //设置外框颜色 _mytableview.layer.borderColor = [UIColor blackColor];