iOS Question Adding Views to NavigationBar

Discussion in 'iOS Questions' started by narek adonts, Feb 15, 2015.

  1. narek adonts

    narek adonts Well-Known Member Licensed User


    Could you advise the way to add Views (Searchbox, Segmented Control, Image instead of page title,...) to the Navigation Bar.
    I think this is a thing that a lot of apps are doing.
    Or the way to create your own Navigation Bar,

    thank you

  2. Erel

    Erel Administrator Staff Member Licensed User

    You can add custom views with BarButton.InitializeCustom.
    For example the following code adds a TextField:
    Private Sub Application_Start (Nav As NavigationController)
       NavControl = Nav
       Page1.Title = 
    "Page 1"
       Page1.RootPanel.Color = 
    Dim bb As BarButton
    Dim tf As TextField
       tf.HintText = 
    "Enter something"
       Page1.TopRightButtons = 
    End Sub
    You can always remove the navigation bar and add a regular panel instead.
  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