Tired of toggling your iPhone's Orientation Lock for certain apps? Keep reading to learn how you can make iOS do it for you automatically.

orientation lock
In iOS, many apps display a different view when you rotate your iPhone from portrait to landscape orientation. Depending on the app and the way you use it, this behavior isn't always desirable, which is why Apple includes the Orientation Lock option in Control Center.

However, certain apps work more usefully with Orientation Lock disabled – think YouTube or the Photos app, where rotating your device to landscape orientation makes for a better fullscreen viewing experience.

If you tend to keep the lock on, you have to disable it in Control Center each time you open these kinds of apps to get the fullscreen experience. Then when you close the app, you have to remember to turn Orientation Lock back on, which isn't ideal. Fortunately, there is a simple personal automation you can create that will take over this process for you for specific apps, so you don't have to keep going in and out of Control Center any more.

The following steps show you how it's done.

  1. Open the Shortcuts app on your iPhone and select the Automation tab.
  2. Tap the plus symbol in the top-right corner of the screen.

  3. Tap Create Personal Automation.
  4. Scroll down and select App.
    shortcuts

  5. Make sure Is Opened and Is Closed are both checked, then tap the blue Choose option.
  6. Select the apps that you want the automation to work with (we’re selecting YouTube and Photos), then tap Done.
  7. Tap Next.
  8. Tap Add Action.
    shortcuts

  9. Start typing "Set Orientation Lock" into the search field, then select the script in the search results when it appears.
  10. Tap Next in the top-right of the Actions screen.
  11. Toggle off the switch next to Ask Before Running, then tap Don’t Ask in the confirmation prompt.
  12. Tap Done to finish.
    shortcuts

Your automation will now be saved in the Shortcuts app, and will be activated the next time you open or close any of the apps you selected for it to work with. Bear in mind that if Orientation Lock is already disabled and you open one of the selected apps, the lock will be turned back on, which is likely the reverse effect that you intended.

Top Rated Comments

19callum93 Avatar
6 weeks ago
Shortcuts is such a mess. It's ridiculous having to do all the above in order to achieve such a simple thing.
Score: 39 Votes (Like | Disagree)
TheYayAreaLiving ?️ Avatar
6 weeks ago
Nice and handy tips! That was very helpful. Thank you!

Anyone miss the Landscape Mode on iPhone?



Attachment Image
Score: 24 Votes (Like | Disagree)
senttoschool Avatar
6 weeks ago
The problem is the default iOS media player. It doesn't have a rotate button. This means if you always have the lock on, you must toggle it off while watching a video on the default player.

YouTube has this button. Most popular video apps have this button.

Apple refuses to add a rotate button in the default iOS video player.

In the last 5 years, I don't think I've ever toggled lock orientation off except for trying to watch a video via the default iOS media player horizontally.
Score: 18 Votes (Like | Disagree)
Cromulent Avatar
6 weeks ago
I always leave the lock on. I can't stand it when the phone switches to landscape view.
Score: 17 Votes (Like | Disagree)
MysteriousStain Avatar
6 weeks ago
You can set the action to TURN on and off and not just toggle
Score: 13 Votes (Like | Disagree)
dustin_ Avatar
6 weeks ago
Wow this is great, thanks!
Score: 11 Votes (Like | Disagree)

Popular Stories

Rapid Security Response Feature 1

Apple Releases Rapid Security Response Updates for iOS 16.5.1 and macOS 13.4.1 to Fix Actively Exploited Vulnerability [Updated]

Monday July 10, 2023 10:31 am PDT by
Apple today released Rapid Security Response (RSR) updates that are available for iPhone and iPad users running the iOS and iPadOS 16.5.1 updates and the macOS Ventura 13.4.1 update. Rapid Security Response updates are designed to provide iOS and macOS users with security fixes without the need to install a full software update. Today's updates address an actively exploited WebKit...
iPhone 15 Pro Two Volume Buttons and Titanium Feature Blue Green

iPhone 15 Pro's Top Rumored Features: USB-C Port, Titanium, and More

Tuesday July 11, 2023 6:37 am PDT by
Apple is expected to unveil the iPhone 15 lineup in September. As usual, the Pro and Pro Max models are expected to have a wide range of new features, including a USB-C port, A17 Bionic chip, titanium frame, and more. Below, we have recapped the top five new features rumored for the iPhone 15 Pro models. USB-C port: iPhone 15 Pro models are widely rumored to feature a USB-C port, providing...
Rapid Security Response Feature 1

Apple Pulls iOS 16.5.1 and macOS 13.4.1 Rapid Security Response Updates Due to Safari Bug

Monday July 10, 2023 8:39 pm PDT by
Apple earlier today released new Rapid Security Response updates for iOS 16.5.1, iPadOS 16.5.1, and macOS Ventura 13.4.1 users, but Apple has pulled the software, likely due to an issue that caused certain websites not to work after the RSRs were installed. According to reports on the MacRumors forums, Facebook, Instagram, WhatsApp, Zoom, and other websites started giving a warning about not ...
primeday2020 feature3

Amazon Prime Day: The Best Apple Deals

Tuesday July 11, 2023 5:30 am PDT by
Amazon Prime Day is back again, and this summer it will last for two days. During this time, you'll find a large selection of deals and offers across Amazon's storefront, covering savings on tech, clothing, video games, groceries, and much, much more. Note: MacRumors is an affiliate partner with Amazon. When you click a link and make a purchase, we may receive a small payment, which helps us...
iPhone 15 Pro Blue Side and Back 2

iPhone 15 Pro Expected to Come in Blue

Friday July 7, 2023 2:12 pm PDT by
The iPhone 15 Pro models that are set to be introduced this September will be available in a unique dark blue color that has a gray tone, according to Unknownz21, a source that has provided multiple details on what we can expect from the next-generation iPhones and accurate information on other Apple devices like the Vision Pro. Available in a new titanium material, the blue shade will have...