다크모드1 iOS 앱에서 다크모드 비활성화 UIUserInterfaceStyle 두가지 방법이 있다. 아래처럼 info.plist 에 UIUserInterfaceStyle을 Light(혹은 Dark)로 추가하면 되는데 UIUserInterfaceStyle Light xcode에서 추가하려고 하면 UIUserInterfaceStyle이 없다. Appearance로 입력해야 한다. xml에서 UIUserInterfaceStyle로 입력해도 xcode에선 Appearance로 나오니 당황하지 말자. 다른 방법은 필요에 따라 window, viewController, view 에서 각각 ovverrideUserInterfaceStyle을 .light로 설정하면 된다. 그런데 다크모드를 강제하는데 화면별로 따로 할 일이 뭐가 있을까, info.plist에.. 2021. 2. 27. 이전 1 다음