Skip to content

Instantly share code, notes, and snippets.

@omayib
Created December 12, 2016 22:12
Show Gist options
  • Save omayib/19b02725a582dbbca167de8e99de3d92 to your computer and use it in GitHub Desktop.
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
//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