0

I created a basic custom class inheriting from an existing one as follows:

Screenshot of my custom subclass

As you can see, it gives me the basic error of the designated initializer of the superclass. However, I did use it! The superclass has only one init() with no arguments.

How can I fix that problem?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Sebouneb
  • 1
  • 1
  • `The superclass has only one init() with no arguments.` are you sure? – Alexander Jul 11 '17 at 21:03
  • 1
    Please post code in your question as text, not as an image. Images can't be referenced or searched and are harder to read. – rmaddy Jul 11 '17 at 21:05
  • Assuming `WhirlyGlobeViewController` is a `UIViewController`, your question is a duplicate of the linked post. – JAL Jul 11 '17 at 21:07
  • Yes. I asked the developper of the super class. He was sure at 100%. – Sebouneb Jul 11 '17 at 21:07
  • Thank you @JAL. It works now, but I'm not sure I understand the procedure. When you don't have any designated initializer with arguments from the superclass, do you need to go to a higher level in the hierarchy and use their designated initializer? – Sebouneb Jul 11 '17 at 21:20

0 Answers0