ios - Swift UILocalNotification Display On Screen -


i trying display uilocalnotification on top of screen when received. have created simple notification

var notification = uilocalnotification() notification.alertbody = "hello world!" notification.firedate = nsdate(timeintervalsincenow: 0) uiapplication.sharedapplication().schedulelocalnotification(notification) 

this displays should in notifications section when user swipes down on screen, there way show notification on top of screen alert user when app running?

implement in appdelegate , show alert :

func application(application: uiapplication, didreceivelocalnotification notification: uilocalnotification) {  } 

Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -