Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

moonman239

Cancelled
Original poster
Mar 27, 2009
1,541
32
I have a subclassed UIView in a view controller. This view has a referencing outlet to a view controller. Within this view are subviews.

subviews appears to be a nonexistent property of UIView. How do I access a subview's properties within the subclassed view?
 

TheWatchfulOne

macrumors 6502a
Jun 19, 2009
838
972
I recommend checking out the UIView Class Reference.

To answer you question more directly, subviews is a read-only property on UIView of type NSArray. Any UIView object you add to a view is added to this array. You can iterate over this array and find more information about each subview using introspection. :cool:
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.