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?
Define a property in the view controller, synthesize
it, then assign viewController.propertyName = someObject;
. Simple as a dimple.
精彩评论