Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Robert Berry
iOS Development with Swift Techdegree Student 10,893 Points"Must call a designated initializer of the superclass 'UIViewController'"
I am working on the property observers code challenge in Swift. I passed the code challenge in Tree House, but when I try running my code in the XCode playground I keep getting the message "Must call a designated initializer of the superclass 'UIViewController'". Has anyone else experienced this? I am running XCode 7.3.1.
1 Answer
David Lin
35,864 PointsSounds like you declared some local variables in the view controller. Then, you need to add the required initializer:
required init(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
}