question about the rotation

Discussion in 'iOS Programming' started by tranvutuan, Feb 10, 2012.

  1. tranvutuan, Feb 10, 2012
    Last edited: Feb 10, 2012

    tranvutuan macrumors member

    Dec 19, 2011
    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

    Attached Files:

  2. ppilone macrumors 6502

    Jan 20, 2008
    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.
  3. tranvutuan thread starter macrumors member

    Dec 19, 2011
    Work like a charm. thanks a lot

Share This Page