I have to show two different images for the corresponding orientations. I have added two images in one UIImageView by using Nib file. I want to show image1.png in iPad orientation Portrait and want to show image2.png in orientation Landscape mode. Can any one please suggest me how to add two UIImageView by Nib file in UIViewController? Please suggest any tutorials for iPad nib file. Thanks in advance.
I have to show two different images for the corresponding orientations. I have added
Share
You have to change the image of the UIImageView in the shouldAutorotate method of the view controller:
}
I hope it helps to you 🙂