Vipin
Vipin

Reputation: 4728

Resizing image view in Portrait mode and landscape mode

Can anyone tell me about the way to resize my image view to show images in both portrait and landscape mode .i want to show them full screen .Please help

Thanks, Christy

Upvotes: 0

Views: 1780

Answers (2)

iProgrammer
iProgrammer

Reputation: 3107

Use like

imageView.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;

and also set leftmargin ,right margin from above code

Upvotes: 6

Suny
Suny

Reputation: 1175

hey change the frame of the image view in the didOrientationChange method..Simple as that...!!

Upvotes: 2

Related Questions