iphone - Objective C best practices when using Interface Builder for controller communication? -


according

what's best way communicate between view controllers?

best practices communication between viewcontrollers inject dependencies stack. , not use delegate.

how do when using interface builder? example have *navcontroller variable in appdelegate. i'd work variable in tableview down line. how access *navcontroller variable tableview class? there way inject it?

(i know can use [self.navigationcontroller] in particular case i'm asking general point of view.)

think of delegates nanny. have tell nanny if done playing, eating, watching tv etc. concept in mind, can communicate other controllers in terms of notifying "nanny" can it. if wanting communicate controller, typically import controller class in question , cast pointer. depends if want delegate or not.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -