Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can I show alert message after upload file #25

Open
luoganghua opened this issue Aug 23, 2015 · 0 comments
Open

how can I show alert message after upload file #25

luoganghua opened this issue Aug 23, 2015 · 0 comments

Comments

@luoganghua
Copy link

I want to show a message to tell user that uploading file is finished.
But it did not show.
The source is following.
net.POST(url, params: params, successHandler: {responseData in
let localNotification = UILocalNotification()
localNotification.alertBody = "finished!"
UIApplication.sharedApplication().presentLocalNotificationNow(localNotification)
}, failureHandler: { error in
// 失敗
let localNotification = UILocalNotification()
localNotification.alertBody = "error!"
UIApplication.sharedApplication().presentLocalNotificationNow(localNotification)

})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant