iPhone : HOWTO move status bar with pan gesture

后端 未结 4 1474
不思量自难忘°
不思量自难忘° 2020-12-28 09:21

Like Instagram - EXPLORE Tab, when I scroll the content, the status bar moves as well.

Always called FullScreenScroll, like here, when the user scro

4条回答
  •  礼貌的吻别
    2020-12-28 10:01

    And swift:

    if let statusBarWindow:UIWindow = UIApplication.shared.value(forKey: "statusBarWindow") as? UIWindow {
       statusBarWindow.frame.origin.y = -5
    }
    

提交回复
热议问题