Answer the question
In order to leave comments, you need to log in
What is the error ?I wanted to use the method?
What is the error I wanted to use the method for the abundance of the statusBar It throws an error I don’t understand why?
Answer the question
In order to leave comments, you need to log in
The error is that method does not override any method from its superclass, obviously.
Learn to read compiler output - useful!
In iOS 10 preferredStatusBarStyle is a property, not a method. Should be written like this
override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question