Displaying UIAlertView after some time

前端 未结 2 463
半阙折子戏
半阙折子戏 2021-01-07 05:54

I\'m trying to display a UIAlertView after some time (like 5 minutes after doing something in the app). I\'m already notifying the user if the app is closed or in background

2条回答
  •  無奈伤痛
    2021-01-07 06:31

    This is the kind of thing that Local Notifications were created for. You can set an UIAlertView-like notification to come up some time in the future, even if your app is backgrounded or not running at all.

    Here is a tutorial.

提交回复
热议问题