ios - Adding 30 seconds to NSDate -


this question has answer here:

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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -