Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override func viewDidLoad(){
- NotificationCenter.default.addObserver(self, selector: #selector(self.changeGiveaway(notification:)), name: Notification.Name("changeGiveaway"), object: nil)
- }
- func changeGiveaway(notification: Notification){
- print("Change giveway was called")
- homeShadow.isHidden = true
- yanaLiveVideoShadow.isHidden = true
- yanaChatShadow.isHidden = true
- yanaShopShadow.isHidden = true
- yanaProfileShadow.isHidden = true
- horoscopesShadow.isHidden = true
- fortuneTellerShadow.isHidden = true
- dailyGiveAwayShadow.isHidden = false
- }
- @IBAction func dailyGiveAway(_ sender: Any) {
- NotificationCenter.default.post(name: Notification.Name("changeGiveaway"), object: nil)
- performSegue(withIdentifier: "giveAway", sender: self)
- }
Add Comment
Please, Sign In to add comment