开发者

How can i access instance variables in a higher up view?

开发者 https://www.devze.com 2023-03-07 17:31 出处:网络
I have a UIView class, classA, initiated inside of viewA, but viewA has other objects i want to access from c开发者_如何学GolassA. How do i do this?You can access viewA from classA using the superview

I have a UIView class, classA, initiated inside of viewA, but viewA has other objects i want to access from c开发者_如何学GolassA. How do i do this?


You can access viewA from classA using the superview property of UIView.

viewA == [classA superview]
0

精彩评论

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