SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @IBAction func greenLikeClick(sender: AnyObject) {
  2.  
  3.     if let parentVC = self.parentViewController as? NewsController {
  4.         parentVC.newslists[loadsection][loadrow].liked = false
  5.     }
  6. }
  7.      
  8. if let presenter = self.navigationController?.viewControllers[0] as? MainViewController {
  9.         // access presenters members
  10.  
  11. }
  12.      
  13. if let presenter = self.presentingViewController?.children[0] as? MainViewController  {
  14.         // access presenters members
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top