iOS UIImageView加边框和圆角

来源:互联网 发布:淘宝退货和退款的区别 编辑:程序博客网 时间:2024/06/05 05:36

 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;

只是简单的记录下,方便以后使用.好记性真不如烂笔头.大笑


   

0 0