Skip to content
This repository has been archived by the owner on Nov 21, 2017. It is now read-only.

Fix Xcode 7 warning #28

Merged
merged 1 commit into from
Dec 6, 2015
Merged

Fix Xcode 7 warning #28

merged 1 commit into from
Dec 6, 2015

Conversation

jtmilne
Copy link
Contributor

@jtmilne jtmilne commented Dec 5, 2015

Current build generated the warning: “Method override for the
designated initializer of the superclass ‘init’ not found”.

According to Apple Docs: “If a class provides one or more designated
initializers, it must implement all of the designated initializers of
its superclass.”

I have added an override for the superclass designated initializer
(init) which calls your designated initializer with nil parameters. If
you prefer to make init unavailable you could add to there header
instead:

  • (instancetype)init NS_UNAVAILABLE;

It’s a judgement call which way to go.

Current build generated the warning: “Method override for the
designated initializer of the superclass ‘init’ not found”.

According to Apple Docs: “If a class provides one or more designated
initializers, it must implement all of the designated initializers of
its superclass.”

I have added an override for the superclass designated initializer
(init) which calls your designated initializer with nil parameters. If
you prefer to make init unavailable you could add to there header
instead:

- (instancetype)init NS_UNAVAILABLE;

It’s a judgement call which way to go.
LeoNatan added a commit that referenced this pull request Dec 6, 2015
@LeoNatan LeoNatan merged commit 57e6881 into LeoNatan:master Dec 6, 2015
@LeoNatan
Copy link
Owner

LeoNatan commented Dec 6, 2015

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants