- (void)viewDidLoad { [super viewDidLoad]; [self makeData]; _tableView = [[UITableView alloc] initWithFrame:self.view.frame style:UITableViewStyleGrouped]; _tableView.delegate = self; _tableView.dataSource = self; [self.view addSubview:_tableView]; // Do any additional setup after loading the view, typically from a nib. } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. }
[objc] view plain copy @property(nonatomic) BOOL clipsToBounds; // When YES, content and subviews are clipped to the bounds of the view. Default is NO. 看了这句话,有个关键词clipped是夹住的意思,默认是NO。在想想以前在处理图片的时候,需要设置图片圆角的时候也有这么一个属性。