• 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
Re: rotating UIView without changing size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rotating UIView without changing size


  • Subject: Re: rotating UIView without changing size
  • From: David Duncan <email@hidden>
  • Date: Fri, 03 Aug 2012 10:49:34 -0700

On Aug 3, 2012, at 10:39 AM, Gerriet M. Denkmann <email@hidden> wrote:

>> 1) adopt view controller containment and do this addition in the view controller that owns basicView (which needs to be a subclass to do this properly) of
>
> If I understand this correctly, I have to do:
> create a view controller for my basicView (currently there is none) and

Modern iOS programming expects a view controller to be present (and this explains why when you add the view controller you get the behaviors you do).

Since you don't have a view controller at all currently, then my recommendation would be to create a base view controller, install all of your controls into it at startup, and hide the ones that are on demand. This is far simpler than the approaches I outlined (which expected that you already had a view controller) and anything else you can do.

(for all interested observers)
Don't try to get away with not having a view controller (that is explicitly set as the window's rootViewController). Its simply not worth it.
--
David Duncan


_______________________________________________

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

References: 
 >rotating UIView without changing size (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: rotating UIView without changing size (From: David Duncan <email@hidden>)
 >Re: rotating UIView without changing size (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: rotating UIView without changing size (From: David Duncan <email@hidden>)
 >Re: rotating UIView without changing size (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: rotating UIView without changing size
  • Next by Date: NSTimer fireDate on invalidated timer not working according to docs
  • Previous by thread: Re: rotating UIView without changing size
  • Next by thread: loading UIView in correct orientation
  • Index(es):
    • Date
    • Thread