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
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
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
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
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
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 |
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
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
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
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
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
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
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
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
14 matches
Mail list logo