Naresh Reddy M Naresh Reddy M - 1 year ago 119
Objective-C Question

How to fire a uilocalnotification after three days?

I am currently working on an iPhone project.
I wanted to fire a local notification after three days of time since the time now.

Can anyone help me to achieve this?

Thanks in advance.

Answer Source
NSInteger nDays = 3;
NStimeInterval nTi = (60*60*24*nDays);
localNotification.fireDate = [NSDate dateWithTimeIntervalSinceNow:nTi];
// Some other code to fire local notification.

This might be helpful.

Thanks, janu.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download