导入QuartzCore.framework 和 #import <QuartzCore/QuartzCore.h>
tableView.layer.borderWidth = 1;tableView.tlayer.borderColor = [[UIColor grayColor] CGColor];