开发者

SSCollectionViewItem changing image size

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜