node ninja
node ninja

Reputation: 33056

How to pass an object to a view controller

How do you pass an object to a view controller, right before you push the view to show it?

Upvotes: 0

Views: 585

Answers (1)

Jacob Relkin
Jacob Relkin

Reputation: 163308

Define a property in the view controller, synthesize it, then assign viewController.propertyName = someObject;. Simple as a dimple.

Upvotes: 5

Related Questions