Remove force unwrapping from dispose method
This commit is contained in:
parent
73c27928ca
commit
034662136f
@ -633,16 +633,16 @@ public class InAppBrowserWebViewController: UIViewController, InAppBrowserDelega
|
|||||||
webView?.removeFromSuperview()
|
webView?.removeFromSuperview()
|
||||||
webView = nil
|
webView = nil
|
||||||
view = nil
|
view = nil
|
||||||
if previousStatusBarStyle != -1 {
|
if previousStatusBarStyle != -1, let statusBarStyle = UIStatusBarStyle(rawValue: previousStatusBarStyle) {
|
||||||
UIApplication.shared.statusBarStyle = UIStatusBarStyle(rawValue: previousStatusBarStyle)!
|
UIApplication.shared.statusBarStyle = statusBarStyle
|
||||||
}
|
}
|
||||||
transitioningDelegate = nil
|
transitioningDelegate = nil
|
||||||
searchBar.delegate = nil
|
searchBar?.delegate = nil
|
||||||
closeButton.target = nil
|
closeButton?.target = nil
|
||||||
forwardButton.target = nil
|
forwardButton?.target = nil
|
||||||
backButton.target = nil
|
backButton?.target = nil
|
||||||
reloadButton.target = nil
|
reloadButton?.target = nil
|
||||||
shareButton.target = nil
|
shareButton?.target = nil
|
||||||
menuButton?.target = nil
|
menuButton?.target = nil
|
||||||
plugin = nil
|
plugin = nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user