UIImageView *imageView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"944d2c2393.jpg"]];
imageView.frame = CGRectMake(50, 100, 200,300);
//设置圆角
imageView.layer.cornerRadius = 5.0;
imageView.layer.masksToBounds = YES;
//加边框
imageView.layer.borderColor = [UIColor blueColor].CGColor;
imageView.layer.borderWidth = 1.0;
附带:
UITableViewCell 隐藏底线和 UITableView点击Cell无状态cell.selectionStyle=UITableViewCellSelectionStyleNone;
detailTableView.separatorStyle = UITableViewCellSeparatorStyleNone;
只是简单的记录下,方便以后使用.好记性真不如烂笔头.