在ViewController.swift里面的viewDidLoad方法中添加代码(3.0为秒数,可自定义):
1 2 3 4 5 |
override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. Thread.sleep(forTimeInterval: 3.0) } |
❤ 点击这里 -> 订阅《PAT | 蓝桥 | LeetCode学习路径 & 刷题经验》by 柳婼