Growl/toast style notifications library for iOS

esilver picture esilver · May 17, 2011 · Viewed 26.7k times · Source

Can anyone recommend a library for implementing growl or toast-style notifications on iOS? For example, after a user saves a profile, I want to have a notification fade in, linger for 3 seconds, report "profile saved", and fade out. Right now I have a UIAlertView that interrupts the user's workflow with a single "OK" button, and I feel like that is overkill.

The Android Toast class is an example of what I am looking for on iOS.

Thanks!

Answer

user2393462435 picture user2393462435 · Jul 25, 2011

I created a solution that I think you'll find useful: https://github.com/scalessec/toast

It's written as a obj-c category, essentially adding makeToast methods to any instance of UIView. eg:

[self.view makeToast:@"Profile saved"
            duration:2.0
            position:@"bottom"];