Skip to content

Instantly share code, notes, and snippets.

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/d55ce24b447a742d2db7800884dc6093 to your computer and use it in GitHub Desktop.
Save hehehaha0228/d55ce24b447a742d2db7800884dc6093 to your computer and use it in GitHub Desktop.
import UIKit
class ViewController: UIViewController {
@IBAction func unwind(segue: UIStoryboardSegue){
if segue.identifier == "goToSeconViewController" {
segue.source as! SecondViewController
}
}
override func viewDidLoad() {
super.viewDidLoad()
print("firstViewDidLoad")
}
override func viewWillAppear(_ animated: Bool) {
print("firstViewWillAppear")
}
override func viewDidAppear(_ animated: Bool) {
print("firstViewDidAppear")
}
override func viewWillDisappear(_ animated: Bool) {
print("firstviewWillDisappear")
}
override func viewDidDisappear(_ animated: Bool) {
print("firstviewDidDisappear")
}
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