Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8603095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:14:37+00:00 2026-06-12T02:14:37+00:00

I have a root UIViewController that handles multiple sub UIViewControllers. The root view is

  • 0

I have a root UIViewController that handles multiple sub UIViewControllers. The root view is a custom tab bar that does not rotate. I want the sub controllers to rotate with orientation changes.

From some testing, I’ve learned that the root controller handles all orientation changes for its sub controllers. So I need to implement a custom animation that would mimic a standard device orientation change, that I can apply to the visible view and, use to transform all non-visible views.

The visible sub controller’s view is added as a sub view to the root’s “contentView”. There is only one sub controller view in the “contentView” at a time. The rest are in an array.

How would I do something like this? That supports iOS 5 and 6. I know I need to preform a CGTransformation to rotate the view, and resize the frame to match. Mainly, I’m not sure what steps I need to take to ensure proper functioning of the sub controllers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T02:14:38+00:00Added an answer on June 12, 2026 at 2:14 am

    I figured out that after applying CGAffineTransformations to a UIView, you can no longer reliably edit the view’s frame. you need to use the bounds instead. keeping the origin of the bounds the same, and changing the size, you can change the view’s size after a Pi/2 rotation. Good for faking a UIDevice rotation change, or responding to one in a root view that does’n allow for orientation changes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a view that is UIViewController (root) that handles ads and a UINavigationController
I have root view with both tab bar and navigation bar visible at the
I have a root UIViewController subclass that has a UITabBar, (I'm not using UITabBarController)
I have a UINavigationController with a UIViewController (vc1) as the root view controller. There
In a custom UIViewController , if I have a member UINavigationController that I initialize
I have an application that has many views (Using tab bar controller). I want
I have a root UIViewController that I am adding other UIViewController's as subviews. Currently
I have an iphone app that has a root view with a button that
I have a three view tab bar app the second view of which I
I have a root UIViewController which has a property called webView. WebView is a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.