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

Conversation

@levi
Copy link
Contributor

@levi levi commented Oct 20, 2015

ASViewController currently cannot be subclassed in Swift, as the original call to [super init] directs to calling the designated initializer of UIViewController [self initWithNibName:bundle:]. Because of Swift's initializer inheritance behavior, this designated initializer will not implicitly be available on the subclassed ASViewController without some extra boilerplate. Adding an explicit call to the designated initializer fixes this issue.

ASViewController currently cannot be subclassed in Swift, as the original call to `[super init]` directs to calling the designated initializer of UIViewController `[self initWithNibName:bundle:]`. Because of Swift's initializer inheritance behavior, this designated initializer will not implicitly be available on the subclassed ASViewController without some extra boilerplate. Adding an explicit call to the designated initializer fixes this issue.
@appleguy
Copy link
Contributor

Good call, thanks!

appleguy added a commit that referenced this pull request Oct 21, 2015
Call UIViewController's designated initializer in ASViewController
@appleguy appleguy merged commit c96813c into facebookarchive:master Oct 21, 2015
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.

3 participants