D
D
David Koifman2017-06-19 16:48:35
Swift
David Koifman, 2017-06-19 16:48:35

What is the error ?I wanted to use the method?

17f12269ba984b378b7ebc59c3692718.pngWhat is the error I wanted to use the method for the abundance of the statusBar bb4f3e7e49764f8baa04b09f1badf7a6.pngIt throws an error I don’t understand why?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GavriKos, 2017-06-19
@GavriKos

The error is that method does not override any method from its superclass, obviously.
Learn to read compiler output - useful!

D
Denis Zagaevsky, 2017-06-19
@zagayevskiy

In iOS 10 preferredStatusBarStyle is a property, not a method. Should be written like this

override var preferredStatusBarStyle: UIStatusBarStyle {
    return .lightContent
}

via

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question