The basic idea of this was to make something that could be as easy to use as NSNotificationCenter, but with some of the niceties of NSUserNotificationCenter on OS X. This is still a work in progress, but I've provided a sample project that will let you get the picture of what it does.
I know people say you shouldn't use other UIWindow objects in your iOS app, but it just felt like this was the perfect candidate to do so. Please let me know if you see something I could be doing better. The rotation stuff feels kind of gross, but it works with minimal WTFness.
- ARC
Here's a video demo of what it can do Awesome Demo
Please check the Issues for the most up to date list of issues, feature enhancements, questions,etc.
-
The change style functionality only works reliably if you register a class BEFORE sending any notifications. The reason is there doesn't seem to be a way to clear the reuse queue of the table view so it's pulling out potentially the wrong class.
-
There is a strange issue where you'll scroll the notifications off scren, then back on, and they will seem to be missing, but they are still there, and you can dismiss them. Very strange.
You know the drill with this, fork, make a topic branch and then send me a pull request. I will do my best to keep everything merged in. Feel free to send me a message or a tweet if there's something I can help you with!
BMAppNotifications by Brian Michel is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Based on a work at https://github.com/brianmichel/BMAppNotifications.