Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sujithkrishnan

macrumors 6502
Original poster
May 9, 2008
265
0
Bangalore
Hi

In my app, i want to do a specific task on tuesday on app startup.
If the app not opened on tuesday, i want the action to perform on the day which user opens the app.

I tried making use of NSCalendar, but not much helpful... How to get the Date of last Tuesday if i on a later day ??

I think i want to make use of "dateByAddingComponents" with some negative values....

i found the NSCalendarDate can help me out, But it is not in iPhone Library... i think (as per API ref)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.