开发者

How to pass an object to a view controller

开发者 https://www.devze.com 2023-01-17 05:40 出处:网络
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.propertyNam

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消