user365426
user365426

Reputation: 107

UIWindows class subviews method missing

Im just going through a video tutorial on swaping views.

see code below please:

NSArray *subs = [window subviews];

The "window subviews" code simply returns the views into the array subs.

But I checked the UIWindow class and I cannot find the property "subviews". Please help, no point my watching video tutorials if I dont understand the code.

many thanks

Upvotes: 0

Views: 148

Answers (1)

Nathanial Woolls
Nathanial Woolls

Reputation: 5291

UIWindow inherits from UIView. UIView has the subviews property.

Upvotes: 1

Related Questions