Re: rotating UIView without changing size
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