Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save PattyAppier/cc813aca3af5e83740e7a8d3cdcf9ca2 to your computer and use it in GitHub Desktop.
Save PattyAppier/cc813aca3af5e83740e7a8d3cdcf9ca2 to your computer and use it in GitHub Desktop.
PattysLucky7App-PattysMapViewController-0421_2018.md
```
// ViewController.swift
// PattysMapApp2018
// Created by sendbest on 2018/4/21.
import UIKit
import MapKit
class ViewController: PattysMapViewController {
//to add code for update mehod for prepare(for:sender:)
override func prepare(for segue: UIStoryboardSegue, sender: Any?) { //sender: Any || AnyObjectSS
if segue.identifier == "showLuckySeven" {
let destinationController = segue.destination as! PattysMapViewController
destinationController.luckySeven = luckySeven
}
}
override func viewDidLoad() {
super.viewDidLoad()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment