Created
April 21, 2018 13:25
-
-
Save PattyAppier/cc813aca3af5e83740e7a8d3cdcf9ca2 to your computer and use it in GitHub Desktop.
PattysLucky7App-PattysMapViewController-0421_2018.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
// 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