self.window = UIWindow(frame: UIScreen.mainScreen().bounds)
var storyboard = UIStoryboard(name: "Main", bundle: nil)
// var initialViewController = storyboard.instantiateViewControllerWithIdentifier("SWRevealViewController") as! UIViewController
var initialViewController = storyboard.instantiateViewControllerWithIdentifier("RevelControllerNavigation") as! UIViewController
self.window?.rootViewController = initialViewController
self.window?.makeKeyAndVisible()
for Toast消息我正在使用此
UIApplication.sharedApplication().windows.first?.addSubview(self.view)
答案 0 :(得分:0)
您无法在ios环境中添加新的UIWindow。您必须使用代理中的那个。
pb <- txtProgressBar(max = 10, style = 3)
for (i in 1:10) {
Sys.sleep(0.5)
setTxtProgressBar(pb, pb$getVal()+1)
}
close(pb)