1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

question about the rotation

Discussion in 'iPhone/iPad Programming' started by tranvutuan, Feb 10, 2012.

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

    macrumors member

    #1
    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. macrumors 6502

    #2
    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. macrumors member

    #3
    Work like a charm. thanks a lot
     

Share This Page