How can I show a PcikerView with indicator?

Discussion in 'iOS Programming' started by mikezang, Oct 13, 2010.

  1. mikezang macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #1
    I want to show a PickerView with a indicator like in picture, this is copied from my iPad, please give me some siggestion.
     

    Attached Files:

  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    UIPopoverController, UITableView, UIPickerView.
     
  3. mikezang thread starter macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #3
    How to show that above triangle?
     
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    Oh, sorry. By "indicator" you meant "triangle". I guess I wasn't able to derive that from the first post.

    Anyways, UIPopoverController has two instance methods to present the popover: one doesn't apply in your case (no related bar) and the other can, if handled properly.
     
  5. mikezang thread starter macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #5
    Is popover lighter than alert or action sheet? I mean which is faster to be shown?
     
  6. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #6
    Popovers are probably "heavier", depending on the complexity of the enclosed view and how much UI-blocking processing might be going on before it's rendered. But normally I would think the difference is insignificant.

    P.S. I had a feeling this would veer into a performance concern. ;)
     

Share This Page