iOS Question Center label in NavigationBar

Discussion in 'iOS Questions' started by JanPRO, Mar 2, 2015.

  1. JanPRO

    JanPRO Well-Known Member Licensed User

    Hi,

    is it possible to center a label in the NavigationBar?

    Best regards

    JanPRO
     
  2. omidaghakhani1368

    omidaghakhani1368 Well-Known Member Licensed User

    Hi.
    I think that not possible,because NavigationBar is standard iOS views
     
  3. klaus

    klaus Expert Licensed User

    Have you tryed to add a BarButton.ITEM_FLEXIBLE_SPACE.
    This allows to move buttons, I haven't tried it with a Label.
     
  4. JanPRO

    JanPRO Well-Known Member Licensed User

    Yes I have already try it, but it doesn't work. See the pictures (especially the iPad/first one)

    OniPad.png

    OniPhone5.png


    TopLeftButtons: SMCButton, Space, Label, Space, Space
     
    Last edited: Mar 2, 2015
  5. Erel

    Erel Administrator Staff Member Licensed User

    Why don't you set the page title instead of a custom label?
     
  6. JanPRO

    JanPRO Well-Known Member Licensed User

    I think, then I can't change the font and the size, or?
     
  7. Erel

    Erel Administrator Staff Member Licensed User

  8. JanPRO

    JanPRO Well-Known Member Licensed User

    Thank you very much. It works perfect!
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice