有没有可能创造一个圆角的UIImage
或UIImageView
?因为我想坐UIImage
号车,把它放在UIImageView
号车里,但我不知道怎么做.
有没有可能创造一个圆角的UIImage
或UIImageView
?因为我想坐UIImage
号车,把它放在UIImageView
号车里,但我不知道怎么做.
是的,这是可能的
yourImageView.layer.cornerRadius = yourRadius;
yourImageView.clipsToBounds = YES;
有关更多信息,请参阅CALayer类参考.