Problem in Autoresizing subviews in iPhone programmatically?

Try to study this question. Or See following code From this question. - (void)willAnimateSecondHalfOfRotationFromInterfaceOrientation: (UIInterfaceOrientation)fromInterfaceOrientation duration:(NSTimeInterval)duration { UIInterfaceOrientation interfaceOrientation = self.

InterfaceOrientation; if (interfaceOrientation == UIInterfaceOrientationPortrait || interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown) { button1. Frame = CGRectMake(100, 33, 226, 275); button2. Frame = CGRectMake(440, 33, 226, 275); button3.

Frame = CGRectMake(100, 360, 226, 275); button4. Frame = CGRectMake(440, 360, 226, 275); button5. Frame = CGRectMake(100, 693, 226, 275); button6.

Frame = CGRectMake(440, 693, 226, 275); } else { button1. Frame = CGRectMake(100, 50, 226, 275); button2. Frame = CGRectMake(400, 50, 226, 275); button3.

Frame = CGRectMake(700, 50, 226, 275); button4. Frame = CGRectMake(100, 400, 226, 275); button5. Frame = CGRectMake(400, 400, 226, 275); button6.

Frame = CGRectMake(700, 400, 226, 275); } } - (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation || UIInterfaceOrientationPortraitUpsideDown); }.

Thanks a lot..I have tried and it sort of working. I have another issue too. When I turn it into landscape my Navigationcontroller appears slightly down from the screen.

How to set it properly? – Cathy May 21 '10 at 10:47.

In Interface Builder, select the view object and then in the inspector window's "View Attributes" pane make sure you have selected a status bar and a "Top Bar" of "Navigation Bar" (assuming your app has a navigation bar). You'll see these near the top in the "Simulated User Interface Elements" section. This informs the app to always leave room for these when determining the size of UIViewController's view.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions