开发者

SSCollectionViewItem changing image size

开发者 https://www.devze.com 2023-03-10 01:32 出处:网络
how to change the开发者_如何学编程 SSCollectionViewItem (from SSToolKit) image size?From the SSCollectionViewItem Documentation, the imageView property is a UIImageView. This means you can adjust its

how to change the开发者_如何学编程 SSCollectionViewItem (from SSToolKit) image size?


From the SSCollectionViewItem Documentation, the imageView property is a UIImageView. This means you can adjust its size using bounds or frame or any of the usual suspects for resizing any UIView. For example,

myCollectionViewItem.imageView.bounds.size.width = 10.0;
myCollectionViewItem.imageView.bounds.size.height = 10.0;

Here, UIImageView is a subclass of UIView so it has bounds, which is a CGRect so it has a size, which is a CGSize so it has a width and height, both CGFloats.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号