How can i access instance variables in a higher up view?
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]
精彩评论