ios - How to resize UIImageView in Swift -
i have image in uitableview cells, cells, want not show image, decided set image height size 0 (you know cannot utilize hidden=true) because of remaining blank space.
so, tried every thing, couldn't resize image, here code, how resize ?
cell!.imageimage.layer.frame = cgrectmake(0, 0, 0, 0) cell!.imageimage.layer.maskstobounds = true
i tried:
cell!.imageimage.frame = cgrectmake(0, 0, 0, 0) cell!.imageimage.layer.maskstobounds = true
so should ?
if using default uitableviewcell
uitableviewcellstyledefault
, have subclass uitableviewcell
, implement layoutsubviews
method, , set image's frame there.
ios uitableview swift uiimageview
No comments:
Post a Comment