title: What is the corresponding class on iOS which will work same as the Alarm Manager on Android?
body: <p>I am developing an application which schedules messages to post on social media on the iPhone. I have implemented the same for Android using the Alarm Manager.</p>
  
  <p>I have already used <code>NSTimer</code> on the iPhone, but it does not run when the application is closed. I also used <code>LocalNotification</code> but it needs a user interface that pops up at specific times, and I'd like to perform the action in the background.</p>
  
  <p>What is the best way to implement scheduled tasks on the iPhone when the application is not running so that the task can be performed in the background at a specific time?</p>