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/[deleted] Jun 02 '14

How old is this blog post?

  • Interface holds instance variables;

  • No storyboarding;

  • UIViewController initialisation with simple init;

  • Label uses autoresizing mask instead of constraints;

  • Anything else i've missed?

2

u/cosmoismyidol Jun 02 '14

True, it is quite outdated. That said..

UIViewController initialisation with simple init

Acceptable when using Nibs - the designated initializer is called by the default init with reasonable defaults.

Label uses autoresizing mask instead of constraints

Autoresizing masks are translated into constraints by iOS. Using them can simplify programatic constraint manipulation.