Try something like: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { if(interfaceOrientation == UIInterfaceOrientationLandscapeLeft) { self. View = landscapeleft; } if (interfaceOrientation == UIInterfaceOrientationPortrait) { self. View = portrait; } if (interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown) { self.
View = portraitupsidedown; } if (interfaceOrientation == UIInterfaceOrientationLandscapeRight) { self. View = landscapeleft; } return YES; }.
Thanks so much got it working almost immediately – Baccalad Jan 22 at 0:37 And best of all I didn't have to create 3 . Xib files. All in one :) – Baccalad Jan 22 at 0:39.
Your brackets in your header are misplaced. @interface TestViewController : UIViewController { IBOutlet UIView *portrait; IBOutlet UIView *landscape; } @property(nonatomic,retain) UIView *portrait; @property(nonatomic,retain) UIView *landscape; @end Also, @synthesize portrait,landscape; needs to go under @implementation TestViewController @implementation TestViewController @synthesize portrait,landscape; Notice the UIView's in this image.
Hmmm. It still seems to crash on launch though :/ – Baccalad Jan 21 at 23:51 did you connect them in Interface Builder? You need to create 2 separate UIViews in IB.
– WrightsCS Jan 21 at 23:52 1 edited my answer with an image. – WrightsCS Jan 21 at 23:55 Thanks I would leave as many up arrows as I could, but apparently not enough rep. – Baccalad Jan 21 at 23:56 :) Finally I got it working now - or should I say you did.
– Baccalad 2 sep8 at 0:14.
I would do the following: if(((interfaceOrientation == UIInterfaceOrientationLandscapeLeft) || (interfaceOrientation == UIInterfaceOrientationLandscapeRight))) { portrait removeFromSuperview; self. View addSubview:landscape; } else if (((interfaceOrientation == UIInterfaceOrientationPortrait) || (interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown))) { landscape removeFromSuperview; self. View addSubview:portrait; } Hope this helps!
There's no need to call removeFromSuperview. – WrightsCS Jan 21 at 23:46.
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.