ios - Access iPhone alarm from app? -


is there way access , update native alarm settings in iphone app? need have sliding alarm changes based on time of year , want use native iphone alarm that. possible in ios sdk, maybe asking user access alarm when app needs access camera or photos example?

unfortunately, believe there no public api accessing clock app , settings. think reason apple wants restrict clock's unique background behavior native app.

an alternative use uilocalnotifications set off alarm.

from apple docs,

local notifications ideally suited apps time-based behaviors, such calendar , to-do list apps. apps run in background limited period allowed ios might find local notifications useful.


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -