r/iOSProgramming • • Jun 02 '14

Passing Data Between View Controllers

http://www.infragistics.com/community/blogs/torrey-betts/archive/2014/05/29/passing-data-between-view-controllers-ios-obj-c.aspx
1 Upvotes

11 comments sorted by

View all comments

1

u/mantra Jun 02 '14

In general, I disagree with this most of the time - this should be an exceptional thing as best.

You SHOULD have a MVC and model design that trivially avoids this kind of thing - if you end up with this as rule, you've done something wrong in your fundamental design. Data needed in common between View Controllers should simply be coming from the same model (or Model Controller!) via the app controller overseeing the connections.

This is part of why I start the design process with data model first once I have user data and interactions defined.