Re: Autorotation for a subview

2009-12-23 Thread Alexander Spohr
Eric, 1. Can’t you use autoresizingMask for all subviews? You can do pretty much automagic with it. Just let your Button hang to the lower and right borders. A view should not resize/reposition itself. 2. Don’t put the view of controller B into a view of controller A. Why not

iPhone: Autorotation for a subview

2009-12-22 Thread Eric E. Dolecki
I have a view which controls it's UI when rotated. However, if there is a subView in place, it rotates and I'd like to control it's UI too. In my subView the willAnimateRotationToInterfaceOrientation doesn't get fired. I set up the shouldAutorotateToInterfaceOrientation. Does my main view need to

Re: iPhone: Autorotation for a subview

2009-12-22 Thread Development
What I have always had to do is rotate the new subview manually when it is added to the main view. I don't know if it's the right answer but it is what I've done. On Dec 22, 2009, at 10:51 AM, Eric E. Dolecki wrote: I have a view which controls it's UI when rotated. However, if there is a

Re: iPhone: Autorotation for a subview

2009-12-22 Thread Hank Heijink (Mailinglists)
On Dec 22, 2009, at 12:51 PM, Eric E. Dolecki wrote: I have a view which controls it's UI when rotated. However, if there is a subView in place, it rotates and I'd like to control it's UI too. In my subView the willAnimateRotationToInterfaceOrientation doesn't get fired. I set up the

Re: iPhone: Autorotation for a subview

2009-12-22 Thread Eric E. Dolecki
Well - the subView is really a settings view - so it can be called up at any time. And of course the user can rotate the device around while it's already being viewed. So I suppose I can call a method in my subview from the willAnimateRotationToInterfaceOrientation:duration in the UIViewController

Re: iPhone: Autorotation for a subview

2009-12-22 Thread Eric E. Dolecki
Ok - I am doing this in my view controller which works better: - (IBAction) displayInfo:(id)sender { myInfoView = [[InfoViewController alloc] initWithNibName:@InfoViewController bundle:[NSBundle mainBundle]]; myInfoView.view.autoresizingMask = (UIViewAutoresizingFlexibleLeftMargin |

Re: Autorotation for a subview

2009-12-22 Thread Matt Neuburg
On Tue, 22 Dec 2009 12:51:35 -0500, Eric E. Dolecki edole...@gmail.com said: I have a view which controls it's UI when rotated. However, if there is a subView in place, it rotates and I'd like to control it's UI too. In my subView the willAnimateRotationToInterfaceOrientation doesn't get fired. I

Re: Autorotation for a subview

2009-12-22 Thread glenn andreas
On Dec 22, 2009, at 1:01 PM, Matt Neuburg wrote: On Tue, 22 Dec 2009 12:51:35 -0500, Eric E. Dolecki edole...@gmail.com said: I have a view which controls it's UI when rotated. However, if there is a subView in place, it rotates and I'd like to control it's UI too. In my subView the

Re: Autorotation for a subview

2009-12-22 Thread Boulevardier
On Dec 22, 2009, at 11:01 AM, Matt Neuburg wrote: On Tue, 22 Dec 2009 12:51:35 -0500, Eric E. Dolecki edole...@gmail.com said: I have a view which controls it's UI when rotated. However, if there is a subView in place, it rotates and I'd like to control it's UI too. In my subView the

Re: Autorotation for a subview

2009-12-22 Thread Matt Neuburg
On Dec 22, 2009, at 2:15 PM, Henry McGilton (Boulevardier) wrote: This sounds like a good time for the view to post an NSNotification. The subview can then respond to it. m. Sounds like overkill --- swatting mosquitoes with sledgehammers. An NSNotification is not a sledgehammer. And

Re: Autorotation for a subview

2009-12-22 Thread Eric E. Dolecki
Thanks all for the insight so far. I'm calling methods into the view - but I think I need to redo how it works. I am interested in NSNotification as I haven't used that yet. On Tue, Dec 22, 2009 at 6:37 PM, Matt Neuburg m...@tidbits.com wrote: On Dec 22, 2009, at 2:15 PM, Henry McGilton

Re: Autorotation for a subview

2009-12-22 Thread mmalc Crawford
On Dec 22, 2009, at 3:37 pm, Matt Neuburg wrote: This sounds like a good time for the view to post an NSNotification. The subview can then respond to it. m. Sounds like overkill --- swatting mosquitoes with sledgehammers. An NSNotification is not a sledgehammer. And letting interested

Re: Autorotation for a subview

2009-12-22 Thread Eric E. Dolecki
I already stated (I believe) that I needed to redo the way this application is being constructed. In this way I'll have more direct access to subviews. I originally created another view controller with it's own nib and I was indeed loading it and using it as a subview to my main view. No leaks

Re: Autorotation for a subview

2009-12-22 Thread mmalc Crawford
On Dec 22, 2009, at 5:09 pm, Eric E. Dolecki wrote: I already stated (I believe) that I needed to redo the way this application is being constructed. In this way I'll have more direct access to subviews. I originally created another view controller with it's own nib and I was indeed