UIAlertView

Discussion in 'iOS Programming' started by Programmer, Jul 9, 2009.

  1. Programmer macrumors member

    Programmer

    Joined:
    Jun 16, 2009
    #1
    Does anyone know how to make a UIAlertview show only on the first ever launch of the app for instance a directions pop up.
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    I'd save a value to NSUserDefaults after the alert is shown. Then, whenever the app starts, query that value from the defaults and see if it's set. If so, skip the alert.
     
  3. Programmer thread starter macrumors member

    Programmer

    Joined:
    Jun 16, 2009

Share This Page