Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

[ASDisplayNode] Add assertion to +initialize warning developers who override and do not call super.#1708

Merged
appleguy merged 2 commits intofacebookarchive:masterfrom
hannahmbanana:Initialize
Jun 4, 2016
Merged

[ASDisplayNode] Add assertion to +initialize warning developers who override and do not call super.#1708
appleguy merged 2 commits intofacebookarchive:masterfrom
hannahmbanana:Initialize

Conversation

@hannahmbanana
Copy link
Copy Markdown
Contributor

If a developer makes this error, it would prevent calls to key lifecycle methods, such as -layoutSpecThatFits:.
Although the superclasses of ASDisplayNode do not implement +initialize, a super call is added here for consistency.

…verride and do not call super.

If a developer makes this error, it would prevent calls to key lifecycle methods, such as -layoutSpecThatFits:.
Although the superclasses of ASDisplayNode do not implement +initialize, a super call is added here for consistency.
@ghost ghost added the CLA Signed label Jun 4, 2016
@appleguy appleguy added this to the 1.9.8 milestone Jun 4, 2016
@appleguy appleguy merged commit 2bb3e00 into facebookarchive:master Jun 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants