Created
July 18, 2017 05:02
-
-
Save mayooresan/344cc7dfd4ab39679353fc0fb5e92159 to your computer and use it in GitHub Desktop.
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
import UIKit | |
class HomeBaseVC: UIViewController, SpyDelegate { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
} | |
func didFindWeaponOfMassDestruction(found: Bool) { | |
// Handle the received data here | |
print("Data received") | |
} | |
// MARK: - Navigation | |
// In a storyboard-based application, you will often want to do a little preparation before navigation | |
override func prepare(for segue: UIStoryboardSegue, sender: Any?) { | |
// Get the new view controller using segue.destinationViewController. | |
// Pass the selected object to the new view controller. | |
if segue.identifier == "sendSpySegue" { | |
let vc : EnemyBaseVC = segue.destination as! EnemyBaseVC | |
vc.delegate = self | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment