Created
December 12, 2016 22:12
-
-
Save omayib/19b02725a582dbbca167de8e99de3d92 to your computer and use it in GitHub Desktop.
after the UIViewController is inherited into UIViewControllerExtension class, we can call all new function from any UIViewController
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//no need to import SJProgressHUD | |
class LoginVC:UIViewController{ | |
func viewDidLoad(){ | |
} | |
func buttonTapped(){ | |
//magic here... wa can call it any where on each UIViewController | |
showWaiting("please wait...") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment