Upvote:2

Aprove answer

Add a property to your second TableViewController's .h file and the accompanying code (e.g. @synthesise) to your .m file. When you alloc/init your second TableViewController (from the first), set the property before pushing the controller onto the navigation stack.

You can find an intro to properties in Objective-C here.


Credit Goes to: stackoverflow.com

Related question with same questions but different answers