UIToolBar and iPhone Interface Orientation Problem?

If you want just to make your view rotatable, is is enough to implement.

If you want just to make your view rotatable, is is enough to implement - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{ return YES; } in your viewCountroller class.

Plus you'll want to set the anchors/stretch settings on the layout tab in Interface Builder. – Epsilon Prime Nov 29 '09 at 3:45 I have two views which I want to swap in portrait and landscape mode. Portrait view has a toolbar at the top which appears fine at first launch.

But when I change the orientation and set it back to portrait toolbar disappear. – Leo Nov 29 '09 at 10:58.

Self.view. Bounds = CGRectMake(0.0, 0.0, 300.0, 480.0); The problem here is that you are making the heigh 480. But it should be 460.So you are currently having 20px more on the height, which may be sending the toopbar somewhat off the screen.

20px will not cause disappeariong of the whole toolbar. And iPhone's screen size is 320x480. – Morion Nov 29 '09 at 9:02 yes.

I agree. That's why I said "which may be sending the toopbar somewhat off the screen. " .

:) – Roshan Amadoru Nov 29 '09 at 10:40 Thanks for the replies. I tried setting less height but toolbar still invisible. Any idea?

– Leo Nov 29 '09 at 10:59.

In interface builder, select the toolbar, hit command-3; this brings up the ruler / alignment control menu. Under the Autsizing section, by default the toolbar is only coupled with left-right and center. Not to the TOP.

Select the "I" at the top. Now the tool bar is docked relative to the top of the view and will not get pushed off during rotation. I'm sure there is a code equivalent for this as well.

It's also possible that some other view is not anchored properly (in Autosizing), and is drawing itself on top of the toolbar. – jlstrecker Jan 28 at 18:22.

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