Skip to content

Instantly share code, notes, and snippets.

@hehehaha0228
Created May 2, 2018 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hehehaha0228/d799d5b854554a54a28857eca4d052f3 to your computer and use it in GitHub Desktop.
Save hehehaha0228/d799d5b854554a54a28857eca4d052f3 to your computer and use it in GitHub Desktop.
import UIKit
class SecondViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
print("2ViewDidLoad")
}
override func viewWillAppear(_ animated: Bool) {
print("2ViewWillAppear")
}
override func viewDidAppear(_ animated: Bool) {
print("2ViewDidAppear")
}
override func viewWillDisappear(_ animated: Bool) {
print("2viewWillDisappear")
}
override func viewDidDisappear(_ animated: Bool) {
print("2viewDidDisappear")
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment