iphone - how can i make my UIImage autoSizing -


in area of uiview, want display uiimage, width , height of not determinate. want uiimage can autosize determinate size. thanks!!

not problem. if want adjust image view height , width according view use thing this,

float height=yourview.height; float width=yourview.width;  cgrect imageframe=yourimageview.view.frame;  //set these values according imageframe.size.height=height-50; imageframe.size.width=width-50;  imageframe.origin.x=20; imageframe.origin.y=40;  yourimageview.view.frame=imageframe; 

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -