Displaying an alert once

Discussion in 'iOS Programming' started by matthew858, Sep 20, 2008.

  1. matthew858 macrumors member

    Joined:
    Apr 15, 2008
    Location:
    Sydney, Australia
    #1
    How would I go about displaying a simple alert (one button) that only displays the first time the app is launched?
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    In your application delegate have some code that checks NSUserDefaults for a specific key. If it's not there show the alert. If it is there don't. Once you show the alert the first time write a value for that key into the defaults.

    Simple.
     

Share This Page