我首先尝试从SWRevealViewController
推送appdelegate
,状态栏只显示临时状态,并且在加载viewController后它不显示。
这是我的代码,我使用的是swift:
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let sw = storyboard.instantiateViewController(withIdentifier: "revealControllerStoryboard") as! SWRevealViewController
self.window?.rootViewController = sw
let destinationController = storyboard.instantiateViewController(withIdentifier: "searchViewStoryboard") as! SearchViewController
let navigationController = UINavigationController(rootViewController: destinationController)
sw.pushFrontViewController(navigationController, animated: true)
如何永久显示状态栏? 和图片
答案 0 :(得分:0)
尝试编辑
;with x as
(
select Id, Status, StartDate, EndDate,
iif (lag(Status) over (order by Id, StartDate) = Status, null, 1) rst
from emp
), y as
(
select Id, Status, StartDate, EndDate,
sum(rst) over (order by Id, StartDate) grp
from x
)
select Id,
MIN(Status) as Status,
MIN(StartDate) StartDate,
MAX(EndDate) EndDate
from y
group by Id, grp
order by Id, grp
GO
答案 1 :(得分:0)
self.window = UIWindow(frame:UIScreen.main.bounds)
以某种方式添加此行会使状态栏再次显示