ios - Adding 30 seconds to NSDate -
this question has answer here:
- how add time interval nsdate? 5 answers
how can convert nsdate seconds? need in seconds can added 30 secs date , convert nsdate schedule local notification. better ways of doing welcome too.
you can use datebyaddingtimeinterval , pass in value 30. return nsdate 30 secs ahead.
nsdate *newdate = [previousdate datebyaddingtimeinterval:30];
Comments
Post a Comment