Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS event handling in complex applications

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?

like image 626
Adel Nizamutdinov Avatar asked Dec 07 '12 15:12

Adel Nizamutdinov


2 Answers

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

like image 108
Ephraim Avatar answered Sep 25 '22 05:09

Ephraim


NSNotificationCenter serves as a built-in distribution mechanism for application-specific events. (As opposed to low-level events.)

like image 25
Phillip Mills Avatar answered Sep 25 '22 05:09

Phillip Mills