# The Status Bar - method does not override any method from its superclass

**URL:** <https://forums.kodeco.com/t/the-status-bar-method-does-not-override-any-method-from-its-superclass/18234>\
**Category:** iOS Apprentice\
**Created:** [August 8, 2016, 1:24am UTC](https://forums.kodeco.com/t/the-status-bar-method-does-not-override-any-method-from-its-superclass/18234 "2016-08-08T01:24:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bush](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/bush/32/62452_2.png) [@bush](https://forums.kodeco.com/u/bush)\
**Post date:** [August 8, 2016, 1:24am UTC](https://forums.kodeco.com/t/the-status-bar-method-does-not-override-any-method-from-its-superclass/18234/1 "2016-08-08T01:24:53Z")

</div>

I just reached the part with the status bar. In each to the new files that I created (MyTabBarController, MyNavigationController, and MyImagePickerController), I am getting an error:

method does not override any method from its superclass. I am using Swift 3.0 with Xcode 8 beta 4.

import UIKit

class MyTabBarController: UITabBarController {  
override func preferredStatusBarStyle() → UIStatusBarStyle {  
return .lightContent  
}

```
override func childViewControllerForStatusBarStyle() -> UIViewController? {
    return nil
}

```

}

---

<div class="post-metadata">

**Author:** ![bush](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/bush/32/62452_2.png) [@bush](https://forums.kodeco.com/u/bush)\
**Post date:** [August 8, 2016, 4:11pm UTC](https://forums.kodeco.com/t/the-status-bar-method-does-not-override-any-method-from-its-superclass/18234/2 "2016-08-08T16:11:49Z")

</div>

It looks like it changed to a “Get ONLY variable” in Swift 3, so if anyone else runs into this issue, you can fix it by using:

override var preferredStatusBarStyle: UIStatusBarStyle {  
return .lightContent  
}

---

<div class="post-metadata">

**Author:** ![hollance](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/hollance/32/109009_2.png) [@hollance](https://forums.kodeco.com/u/hollance)\
**Post date:** [August 8, 2016, 5:52pm UTC](https://forums.kodeco.com/t/the-status-bar-method-does-not-override-any-method-from-its-superclass/18234/3 "2016-08-08T17:52:49Z")

</div>

Yep, lots of stuff has changed in Swift 3. An update to the book will be available when Xcode 8 and Swift 3 are out of beta.
