[bug fix]mail crash.

This commit is contained in:
suzuki_keishi 2016-01-13 13:56:01 +09:00
parent 0e636f4bd3
commit 5ea0635207
1 changed files with 5 additions and 8 deletions

View File

@ -123,6 +123,11 @@ public class SKPhotoBrowser: UIViewController, UIScrollViewDelegate, UIActionShe
}
}
deinit {
pagingScrollView = nil
NSNotificationCenter.defaultCenter().removeObserver(self)
}
func setup() {
applicationWindow = (UIApplication.sharedApplication().delegate?.window)!
@ -244,14 +249,6 @@ public class SKPhotoBrowser: UIViewController, UIScrollViewDelegate, UIActionShe
isViewActive = true
}
public override func viewDidDisappear(animated: Bool) {
super.viewDidDisappear(true)
pagingScrollView = nil
visiblePages = Set()
NSNotificationCenter.defaultCenter().removeObserver(self)
}
public override func prefersStatusBarHidden() -> Bool {
if isForceStatusBarHidden {
return true