Re: rotating UIView without changing size

2012-08-18 Thread Matt Neuburg
On Sat, 04 Aug 2012 00:39:43 +0700, Gerriet M. Denkmann gerr...@mdenkmann.de said: If I understand this correctly, I have to do: create a view controller for my basicView (currently there is none) and use [ basicViewController addChildViewController: sliderViewController ] and not use [ self

rotating UIView without changing size

2012-08-03 Thread Gerriet M. Denkmann
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:

Re: rotating UIView without changing size

2012-08-03 Thread David Duncan
On Aug 3, 2012, at 8:34 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: 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

Re: rotating UIView without changing size

2012-08-03 Thread Gerriet M. Denkmann
On 3 Aug 2012, at 22:50, David Duncan wrote: On Aug 3, 2012, at 8:34 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: I have a subclass of UIViewController which displays a small view in the center of the display. shouldAutorotateToInterfaceOrientation: returns YES. The problem:

Re: rotating UIView without changing size

2012-08-03 Thread David Duncan
On Aug 3, 2012, at 9:16 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: The code in basicView (an UIView) is: - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { if ( self.sliderView == nil ) // load nib { NSBundle *mainBundle = [

Re: rotating UIView without changing size

2012-08-03 Thread Gerriet M. Denkmann
On 3 Aug 2012, at 23:59, David Duncan wrote: On Aug 3, 2012, at 9:16 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: The code in basicView (an UIView) is: - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { if ( self.sliderView == nil ) // load nib

Re: rotating UIView without changing size

2012-08-03 Thread David Duncan
On Aug 3, 2012, at 10:39 AM, Gerriet M. Denkmann gerr...@mdenkmann.de 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