How to make an alarm clock?

Hello.
I want to ask how to make an alarm clock app on xcode?
I.e. which concepts I need to learn. I need to make available the signal even when user is in the app. How to do this?