Comparing the date,time with iPhone system current date

Discussion in 'iOS Programming' started by katsangeeta, Mar 20, 2011.

  1. katsangeeta macrumors newbie

    Joined:
    Mar 20, 2011
    #1
    Hello,

    I am making an iphone application which store one text message and user set date,time value. So, whenever the system time matches with the stored date, time value, the stored message will be popped to the user and its entry should be deleted from the storage medium after popping up.

    So, can anybody pliz tell me, where i should store my data. I should use sqlite, plist or some other way and also how i should compare my stored date, time with the current running time.

    Any help is highly appreciated.
    Thanking you in advance.
     
  2. (marc) macrumors 6502a

    (marc)

    Joined:
    Sep 15, 2010
    Location:
    the woods
    #2
    Sounds like you want to learn to program. Check at the top of the iPhone/iPad Programming forum for helpful resources. If you believe than you can program, read the NSDate Class Reference and the SQLite Wikipedia Article. That should answer all your questions.
     
  3. jnoxx macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #3
    U could also use the NSStandardDefaults (not so much recommanded). Also u could use the standard .plist, specially if it's for such small things, because a SQLite for such small things is overkill.
    Hope u figure out, good luck.
     

Share This Page