Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. class UsageUIViewController: UIViewController {
  2.  
  3. let progressDialog:ProgressDialogView = ProgressDialogView()
  4.  
  5. override func viewDidLoad() {
  6. super.viewDidLoad()
  7. self.view.addSubview(progressDialog)
  8. }
  9.  
  10. override func viewWillAppear(_ animated: Bool) {
  11. showProgressDialog()
  12. }
  13.  
  14. override func viewWillDisappear(_ animated: Bool) {
  15. hideProgressDialog()
  16. }
  17.  
  18. func showProgressDialog() {
  19. self.progressDialog.show()
  20. }
  21.  
  22. func hideProgressDialog() {
  23. self.progressDialog.hide()
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement