• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
rotating UIView without changing size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rotating UIView without changing size


  • Subject: rotating UIView without changing size
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Fri, 03 Aug 2012 22:34:29 +0700

I have a subclass of UIViewController which displays a small view in the center of the display.
shouldAutorotateToInterfaceOrientation: returns YES.

The problem:
when I rotate the device, the centered view rotates as it should. But it also changes its size to full-screen.

The (bad) workaround:
in didRotateFromInterfaceOrientation: I set the frame back to a sensible value.

Result: when I rotate the device, the view rotates, blows up to fill the screen, then snaps back to its real size.

Is there a way to tell the ViewController to NOT mess with the size of its view (it should just exchange width and height)?

Gerriet.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • loading UIView in correct orientation
      • From: "Gerriet M. Denkmann" <email@hidden>
    • Re: rotating UIView without changing size
      • From: David Duncan <email@hidden>
  • Prev by Date: Open menu crashes Cocoa app targeting SL
  • Next by Date: Re: rotating UIView without changing size
  • Previous by thread: Open menu crashes Cocoa app targeting SL
  • Next by thread: Re: rotating UIView without changing size
  • Index(es):
    • Date
    • Thread