PDA

View Full Version : question about the rotation




tranvutuan
Feb 10, 2012, 10:53 AM
I am working to support the rotation screen in Iphone now and running into the issue. When the screen is in Poitrait mode, the position of navigation bar and its items on it looks perfectly. When I switch to LandscapeToLeft, the width of navigation bar is stretched and it is fine.However, the position of items bar on it stay the same...Their positions are not changed at all...I attach some images below so you guys can see what my problem is

If you were experiencing it before, please help
Any ideas are welcomed here. Thanks

PS: these itemBarButtons are added by drag and drop in the toolbar in StoryBoard



ppilone
Feb 10, 2012, 11:28 AM
You could try adding a Flexible Space bar item in between each item. That should keep the items spaced uniform whether in portrait or landscape.

tranvutuan
Feb 10, 2012, 11:34 AM
You could try adding a Flexible Space bar item in between each item. That should keep the items spaced uniform whether in portrait or landscape.
Work like a charm. thanks a lot