NativeScript / sample-Groceries

:green_apple: :pineapple: :strawberry: A NativeScript-built iOS and Android app for managing grocery lists
Apache License 2.0
485 stars 345 forks source link

fix: Crash due to writing to statusBarStyle #331

Closed mbektchiev closed 5 years ago

mbektchiev commented 5 years ago

The latest iOS Runtime exposes UIApplication's statusBarStyle property as read-only because write access to it has been deprecated since iOS 9.0. See https://developer.apple.com/documentation/uikit/uiapplication/1622988-statusbarstyle?language=objc

The status bar's style is automatically adjusted and this code is not needed.

The new behavior in iOS is introduced with https://github.com/NativeScript/ios-runtime/pull/1100