how can i implement a datepicker in a uiScrollView?

Discussion in 'iOS Programming' started by macedes, Feb 21, 2012.

  1. macrumors newbie

    Joined:
    Mar 30, 2008
    #1
    When i click on a textfield, the date picker pops up but when i scroll a little bit down the date picker moves up. how can i fix the date picker in the bottom of the screen?
     
  2. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    Don't add the datePicker as a subview of the scrollView but, rather, as a subview of the main view, whatever that may be in your case.
     
  3. thread starter macrumors newbie

    Joined:
    Mar 30, 2008

Share This Page