[iPhone] How to change Portrait / Landscape mode.

I am tring to change view mode between portrait and landscape mode.
UIViewController has two UIViewes and I want them to be shown as a landscape mode.
I found the property of interfaceOrientation in UIViewcontroller.
but it is readonly.
Is there a way to change view orientation not with info.plist but with code.

You can call setStatusBarOrientation on the UIApplication class and then set your landscape view.

Similar Messages

  • My iPhone will not work in landscape mode anymore, how do i get to work again

    my iPhone will not work in landscape mode anymore, how do i get to work again??

    Double click round home button then slide icon on the bottom of screen to so you go all the way to left.  There you will see a square icon with a circle arrow .  That is the screen rotation control button.  Tap on that to lock/unlock screen rotatio

  • HT201401 iphone display is stuck in landscape mode in messaging window? how do I fix?  Turning phone does not work

    iphone display is stuck in landscape mode in messaging window? how do I fix?  Turning phone does not work

    issue solved, i turned off phone and then on again and all is well

  • In my iPhone the images and videos are not changing into landscape mode

    In my iPhone the images and the videos are not changing into landscape mode. And it is switching off  automatically

    Hi vijenderreddy,
    Thanks for using Apple Support Communities.  This article has some steps to try if your iPhone is unexpectedly powering off:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/ts2802
    Will not turn on, will not turn on unless connected to power, or unexpected power off
    Verify that the Sleep/Wake button functions. If it does not function, inspect it for signs of damage. If the button is damaged or is not functioning when pressed, seek service.
    Check if a Liquid Contact Indicator (LCI) is activated or there are signs of corrosion. Learn about LCIsand corrosion.
    Connect the iPhone to the iPhone's USB power adapter and let it charge for at least ten minutes.
    After at least 30 minutes, if:
    The home screen appears: The iPhone should be working. Update to the latest version of iOS if necessary. Continue charging it until it is completely charged and you see this battery icon in the upper-right corner of the screen . Then unplug the phone from power. If it immediately turns off, seek service.
    The low-battery image appears, even after the phone has charged for at least 20 minutes: See "iPhone displays the low-battery image and is unresponsive" symptom in this article.
    Something other than the Home screen or Low Battery image appears, continue with this article for further troubleshooting steps.
    If the iPhone did not turn on, reset it while connected to the iPhone USB power adapter.
    If the display turns on, go to step 4.
    If the display remains black, go to next step.
    Connect the iPhone to a computer and open iTunes. If iTunes recognizes the iPhone and indicates that it is in recovery mode, attempt to restore the iPhone. If the iPhone doesn't appear in iTunes or if you have difficulties in restoring the iPhone, see this article for further assistance.
    If restoring the iPhone resolved the issue, go to step 4. If restoring the iPhone did not solve the issue, seek service.
    For the issue of images not changing orientation, see this article:
    iOS: Screen does not rotate
    http://support.apple.com/kb/ts3805
    Cheers,
    - Ari

  • How to change to landscape orientation in Pages for iPhone4s?

    Does anyone know how to change to landscape orientation in Pages for iPhone 4s and iPad?

    The functionality on an iPhone is greatly diminished when having to work in potrait mode due to the screen size; it really becomes a bit useless.
    It seeems a no-brainer; I guess that's why I asked on the forum.
    Maybe someone else knows more.?
    I hope that you're not right but think you probably are.
    Thanks again for offering to help!

  • My iPhone no longer switches to landscape mode

    my iPhone no longer switches to landscape mode, any suggestions

    Make sure it's not in Portrait mode. Double-click the home button to bring up the multitasking bar, go to the left, the leftmost icon should be an empty square. Click it to turn on or off Portrait mode.

  • Notification center on white iPhone 4s only present in "landscape" mode.

    Hello,
    After purchasing a new white iPhone 4s, the notification center and tab, is not present or able to be swiped down when holding the telephone in portrait mode.
    However when I rotate to landscape mode, the tab appears and I can acces the notification center. Has anyone found a fix for this? I have tried resetting, rebooting, and restoring the iphone.
    Thanks
    Message was edited by: mbexkens

    So throughout the forums there are numerous questions but noone posts a clear fix.
    I have rounded some of them up here.
    https://discussions.apple.com/thread/3377222?start=15&tstart=0
    https://discussions.apple.com/message/18483744#18483744
    https://discussions.apple.com/message/19921337#19921337
    https://discussions.apple.com/message/17569682#17569682

  • Why will iphone not play video in landscape mode anymore

    I am a HUGE purchaser and user of iTunes Music Videos and on my iPhone, I was happily playing them in playlists and watching them in landscape orientation as a video playlist.
    I was quite upset when I bought my first iPad and found that it simply would not support this basic (for me) functionality.   But I searched and found a music video playlist app and purchased what SHOULD HAVE BEEN included functionality on the iPad.   Seriously, if the iPhone could do this basic operation why shouldn't the iPad, which is much better suited for video playlists with the bigger screen?
    Now, after updating to iOS7, you've broken the functionality even moreso.   Imagine my joy, surprise and sheer level of cursing and swearing when I turned my videos into landscape mode and found some dickbag has decided I should see album covers instead of my video in full screen on the phone.
    So, Apple, the "We sell devices so that we can also sell the media" company,   why are you screwing with something that should be basic and intuitive on the phone and ipad?
    I, and I expect everyone else, expect to open the music app, go to the music videos playlist automatically generated in that app (BY your programmers) and then be able to play the videos from the video playlists you allow me to create - my own playlists in both portrait and landscape modes.
    So please fix this ever-increasing pain in the ***.    I will not be purchasing any more videos (And yes, check my history, I am quite likely in the top 5% of purchasers of music videos) because you are slowly removing the intuitive methods for playing them.
    David Patrie

    A revolutionary A7 processor with 64-bit architecture, and none of those bits are smart enough to figure out "hey, maybe if my owner is listening to a video in the Music app and switches to landscape mode they're more interested in seeing the video larger, not unrelated album art thumbnails. Let me temporarily borrow the landscape view logic from the Video app."?
    I hope they fix this at least by iOS 8. It's not logical (let alone user friendly) to exit out of the Music app and go into a separate Video app just to see a music video in landscape. The ironic thing is the Video app forces videos to be landscape – as if the logic it follows is that anyone watching a video really wants to see it in landscape – but yet that logic gets kicked off the boat when the video digits cross the river over to Music app land.

  • IPhone 3GS not working in landscape mode even after tilting.

    My IPhone 3GS works only in portrait mode even if tilted to landscape mode for all apps. For  the few apps which are primarily designed for landscape mode but do work in portrait mode, the device continues to work in landscape mode even when tilted to portrait. Continue to face this problem even after reloading iOS 6.

    try switching off the portrait lock

  • Iphone 6 not going to landscape mode while in messages

    For some reason when i try to type in landscape mode phone will not go to landscape more I have to close the app multiple times just for it to happen. Also bluetooth not working with any devices. And for some other reason while on FaceTime other people are saying my picture on there end was upside down.. HELP!!!!!!!!!!!! Also when i double click the home button and try to go back into iMessage the keyboard is no where to be found for a couple of seconds..

    Indeed the option to lock to portrait mode is not on in the control panel. The behavior of switching from portrait to landscape works fine in my hand, it's when the phone is in a holder that it does not detect the orientation and adjust accordingly. The iPhone 5 did this with no problem, but on iPhone 6 any app that allows landscape mode starts out in portrait mode and then does not automatically adjust. Rather you have to move the phone back into portrait mode and it's that motion of being re-oriented into landscape mode that finally triggers the switch.

  • Portrait/Landscape mode switching

    I'm still waiting for my imate JASJAM (which is same as HTC
    TyTN) to arrive to test this. Just wonder if there is Actionscript
    to detect if the display is in Portrait or Landscape mode and if
    there is event notification to tell the Flash Lite app that the
    display mode has been changed.

    I Just spent over an hour with support on this issue and apparently in iOS 8 they removed the option for the phones to lock in landscape mode. So, there is nothing wrong with your phone, unfortunately they removed a very useful feature.  Maybe they will see if enough users want it they will fix it in an update. 

  • IPhone won't change to landscape

    I can't get my display on my iPhone to Change to landscape, it was working when first started using it but now has stop, does anyone know how to fix it.

    I had the same problem but it would switch to landscape only after shaking my iPhone violently. I tried all the suggestions above and nothing worked so then I tried smacking my iPhone on my other hand a little bit hard and now it will switch back and forth normally. Somehow something inside must of gotten stuck and smacking it was able to get it unstuck.

  • IPhone 6 month view in landscape mode??

    hello, was wondering if there is a way to view an entire month in landscape mode on the  regular iPhone 6 just like we can on the iPad?? Couldn't find it and would love this feature if it doesn't exist. I don't schedule things by the hour. I think the screen is plenty big for this and the month view in horizontal mode is useless since the little dots won't show colors.
    Thanks for any info!

    I haven't found a way to display the whole month in landscape view on my iPhone 6. May not exist. You can send feedback to Apple about this here:
    http://www.apple.com/feedback/

  • Control center not working on iPhone 6 plus when in landscape mode

    I has a iphone 5 before it , and there's no problem with the control center, now with this expensive iPhone 6 plus , the control is not working when the phone is in landscape mode , when the screen tapped repeatedly, I can only see the little tab of the control center but I can't able to bring it up.
    Anyone has this problem?

    Hello torontonightowl,
    Thanks for using Apple Support Communities.
    For some initial troubleshooting on this issue where you're unable to open the control center on your iPhone, please first restart your iPhone, and if the issue persists then reset the iPhone.
    Restart or reset your iPhone, iPad, or iPod touch - Apple Support
    Cheers,
    Alex H.

  • Iphone 6 plus stuck in landscape mode rotation failure

    Hi
    My iPhone  6 plus keeps getting stuck in landscape mode even though rotation is not locked. Is this a bug, is there a fix?
    Thanks

    Hi Sunnifromlondon,
    Thanks for visiting Apple Support Communities.
    If your iPhone screen is not rotating as expected, there could be several potential causes. First, we can attempt some troubleshooting steps that may resolve the issue.
    I recommend going through all of the steps in this support site article:
    iOS: Screen does not rotate
    Best Regards,
    Jeremy

Maybe you are looking for

  • IPhone & AT&T

    The only reason I had went with AT&T is because I want to use the iPhone. And I know that I could unlock the device and go with some other service, But I'd rather avoid that scenario and unknown problems. However: the iPhone is my only phone. Therefo

  • [SOLVED] how to prevent suspending/sleeping when closing laptop lid

    Hi all, My laptop, a Lenovo Thinkpad T430u, suspends whenever I close the lid. It's been doing this since I first installed Arch.  I want to turn this feature off.  How can I do it? Relevant information: acpid is installed the configuration file /etc

  • IPhone 6+ speaker holes got plugged up

    Believe it or not, my iPhone 6+ got pushed against an Oreo cookie, and the speaker holes got plugged with frosting. I used a damp Qtip to wipe the frosting off, then, as sound level was still low, very gently put a damp wood toothpick in each hole, w

  • Deleting word deletes space before it as well

    I don't know if this has always been the case, but I've only just started to notice it and it is frustrating the **** out of me. In pages on the iphone and iPad, if I delete all the letters in the word, the space before the word automatically gets de

  • Carry and forward agent

    Hi i want to do the configuration for C& F agent in the system. From the forum i understand that it is done through the partner determination using "FA" as a partner functions. Could someone elaborate more and tell me the required accouinting enrtrie