UIViewController Extensions

Omar Albeik edited this page Dec 10, 2016 · 3 revisions

UIViewController extensions

Properties:

Name Description
isVisible Check if ViewController is onscreen and not hidden.
navigationBar NavigationBar in a ViewController.

Methods:

Name Return Description
addNotificationObserver(name: Notification.Name, selector: Selector) -- Assign as listener to notification.
removeNotificationObserver(name: Notification.Name) -- Unassign as listener to notification.
removeNotificationsObserver() -- Unassign as listener from all notifications.