在程序的Info.plist文件中加入: key: UIUserInterfaceStyle value: Light 截圖.png 或者使用代碼禁止 self.window?.overrideUserInterfaceStyle = .light