Set width and height only for views in iPhone Development

Hi guys, I'm working on an iPhone project where I need to dynamically change the width and height of a UIImageView. I came across CGPointMake to change the x and y positions alone, but what should I use to change the width and height? Something is called CGSizeMake there, but I can't get it to work. Can someone help ... any idea about this .... ??? .. Thanks.

+4
source share
1 answer

Try it out.

CGRect aFrame = image.frame; aFrame.size.width = newWidth; aFrame.size.height = newHeight; image.frame = aFrame; 
+8
source

Source: https://habr.com/ru/post/1310220/


All Articles