I've been developing for Android for quite a while, and now started learning iOS, and here's the thing:
On Android, when you have a massive amount of events going through the application, it becomes very tedious creating and implementing all these interfaces (protocols), subscribing and unsubscribing and stuff. And there's a couple of very good eventbusses, for example an Otto by Square https://github.com/square/otto
So I was wondering, is there any standart solution for iOS to handle various events across various application elements, or it's done by implementing and subscribing protocols, too? Or maybe there's some cool eventbus library for it, like on Android?
Or, you can try Tolo, an Otto inspired, equally easy to use and powerful, event publishing framework for iOS. Simply SUBSCRIBE()
, or PUBLISH()
from anywhere.
Check it out at http://genzeb.github.io/tolo
NSNotificationCenter
serves as a built-in distribution mechanism for application-specific events. (As opposed to low-level events.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With