What is superview and what is subviews?
When I add this code:
// what does that mean ?
@property (nonatomic, strong) IBOutlet UIImageView *frontView;
[self.frontView superview] != nil // means ?
superview means a view which holds the another view over it.
subviews means the views which are holding/added over a 'View'.
Lets Say. you have a view
MyView which has a UIButton(loginButton) over it.So,
superview for that
loginButton is a subview forMyView`.