ios - How to proportinally size the image based on the iphone is using -
let have large image (400wx700h) pixels. want image centered on iphone , take 1/4 of display area. doesn't matter if iphone 4 or iphone 6+, still want image centered , take 1/4 of display area. also, want design in storyboard , using constraints, no coding. know how center image, not sure 1/4 portion. can please guide me?
thanks borna
create constraints equal width , height super view, , set multiplier in each constraint 0.25
Comments
Post a Comment