Last active
February 11, 2016 11:24
-
-
Save trevorah/4310fa82c6878f155eff 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
class DetailViewController: UIViewController, NSDiscardableContent { | |
override func didReceiveMemoryWarning() { | |
super.didReceiveMemoryWarning() | |
// Dispose of any resources that can be recreated. | |
} | |
func beginContentAccess() -> Bool { | |
return true | |
} | |
func endContentAccess() {} | |
func discardContentIfPossible() {} | |
func isContentDiscarded() -> Bool { | |
return false | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment