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

状态栏问题处理

parent a57ded6c
......@@ -207,7 +207,7 @@ class YHHomeHoldViewPageViewController: YHBaseViewController, WKUIDelegate, WKNa
// 处于第一个item的时候,才允许屏幕边缘手势返回
navigationController?.interactivePopGestureRecognizer?.isEnabled = (segmentedView.selectedIndex == 0)
checkStatusBar()
YHOSSManager.share.getOSSID()
getTotalUnreadMsgCount()
......@@ -225,6 +225,13 @@ class YHHomeHoldViewPageViewController: YHBaseViewController, WKUIDelegate, WKNa
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) {
if let userInfo = notification.userInfo, let value = userInfo["value"] as? Int {
segmentedView.selectItemAt(index: value)
......
......@@ -2,6 +2,8 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UIViewControllerBasedStatusBarAppearance</key>
<true/>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
......@@ -134,8 +136,6 @@
<key>UIImageName</key>
<string>AppIcon</string>
</dict>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>agc_applinking_not_read_pasteboard</key>
<false/>
</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