[bug fix]mail crash.
This commit is contained in:
parent
0e636f4bd3
commit
5ea0635207
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue