Commit 42e76996 authored by pete谢兆麟's avatar pete谢兆麟

状态栏问题处理

parent a57ded6c
...@@ -207,7 +207,7 @@ class YHHomeHoldViewPageViewController: YHBaseViewController, WKUIDelegate, WKNa ...@@ -207,7 +207,7 @@ class YHHomeHoldViewPageViewController: YHBaseViewController, WKUIDelegate, WKNa
// 处于第一个item的时候,才允许屏幕边缘手势返回 // 处于第一个item的时候,才允许屏幕边缘手势返回
navigationController?.interactivePopGestureRecognizer?.isEnabled = (segmentedView.selectedIndex == 0) navigationController?.interactivePopGestureRecognizer?.isEnabled = (segmentedView.selectedIndex == 0)
checkStatusBar()
YHOSSManager.share.getOSSID() YHOSSManager.share.getOSSID()
getTotalUnreadMsgCount() getTotalUnreadMsgCount()
...@@ -225,6 +225,13 @@ class YHHomeHoldViewPageViewController: YHBaseViewController, WKUIDelegate, WKNa ...@@ -225,6 +225,13 @@ class YHHomeHoldViewPageViewController: YHBaseViewController, WKUIDelegate, WKNa
NotificationCenter.default.addObserver(self, selector: #selector(handleNotification(_:)), name: YhConstant.YhNotification.backToHomeNotification, object: nil) NotificationCenter.default.addObserver(self, selector: #selector(handleNotification(_:)), name: YhConstant.YhNotification.backToHomeNotification, object: nil)
} }
private func checkStatusBar() {
if k_Height_statusBar() == 0 {
self.gk_statusBarHidden = false
setNeedsStatusBarAppearanceUpdate()
}
}
@objc func handleNotification(_ notification: Notification) { @objc func handleNotification(_ notification: Notification) {
if let userInfo = notification.userInfo, let value = userInfo["value"] as? Int { if let userInfo = notification.userInfo, let value = userInfo["value"] as? Int {
segmentedView.selectItemAt(index: value) segmentedView.selectItemAt(index: value)
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>UIViewControllerBasedStatusBarAppearance</key>
<true/>
<key>CFBundleDocumentTypes</key> <key>CFBundleDocumentTypes</key>
<array> <array>
<dict> <dict>
...@@ -134,8 +136,6 @@ ...@@ -134,8 +136,6 @@
<key>UIImageName</key> <key>UIImageName</key>
<string>AppIcon</string> <string>AppIcon</string>
</dict> </dict>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>agc_applinking_not_read_pasteboard</key> <key>agc_applinking_not_read_pasteboard</key>
<false/> <false/>
</dict> </dict>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment