iOS Question is there any example for using picker?

Discussion in 'iOS Questions' started by liulifeng77, Jul 21, 2015.

  1. liulifeng77

    liulifeng77 Active Member Licensed User

    I'm a newer,I'm finding some material for learning. sorry my pool english. thanks

    I used it like this:

    Dim class As List
    Private Sub Application_Start (Nav As NavigationController)
    class.Initialize2(Array As String("1","3"))
    Picker1.Initialize("picker1")
    Picker1.SetItems(0,class)
    end sub


    there is no item display in my device.
     
  2. JanPRO

    JanPRO Well-Known Member Licensed User

    Hi,

    The problem is that you initialize the Picker and probably add it in the designer too. ;)

    Note: If you add a view to a layout with designer, you should not initialise it in your code.

    So, just delete the line, where you initialize the Picker.
     
    Erel likes this.
  3. liulifeng77

    liulifeng77 Active Member Licensed User

    thank you very much.
     
Loading...