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
Post a Comment