How to tell if UIViewController’s view is visible

I have a tab bar application, with many views. Is there a way to know if a particular UIViewController is currently visible from within the UIViewController? (looking for a property) 17 s 17 The view’s window property is non-nil if a view is currently visible, so check the main view in the view controller: Invoking … Read more

Cocoa: What’s the difference between the frame and the bounds?

UIView and its subclasses all have the properties frame and bounds. What’s the difference? 1Best Answer 11 Short frame = a view’s location and size using the parent view’s coordinate system Important for: placing the view in the parent bounds = a view’s location and size using its own coordinate system Important for: placing the … Read more