uitabbarcontroller - Passing model data to tab bar view controller as a detail controller in iOS -


i'm developing core data master-detail application. detail view tabbed interface each tab displaying different aspects of model object.

therefore, have a:

  • master view controller (subclass of uitableview).
  • tab bar controller (default uitabbarcontroller, not subclassed).
  • 3 detail view controllers contained within tab bar controller.

when application segues master view controller tab view controller, stash selected model object?

how share model object detail views contained within tab bar controller?

you can try creating shared data object aka singleton design pattern. set selected model object inside variable in singleton instance , access viewcontrollers inside tab bar.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -