![Second View its the main gallery view][1]
Hello I`m trying to invoke a new view controller when the device is on landscape orientation. It’s an image gallery with scroll view, the thing is I want to show the image gallery on a different position but I don’t know how. I’m using Xcode 4.3 with Story boards so its a bit different then the older version I think.
Thank you for your help.
![This how it looks without the code in landscape, the scroll dissapears][2] Thats why I’m calling another view
Dang! I’m not allowed to post images
Make your landscape view in the storyboard. Add an identifier, like LandscapeView, in the inspector. Then, in your original view controller, import the header file of the view controller of the landscape view:
and modify the following method like so:
Then, in the view controller of the landscape view, modify the same method as follows: