Skip to content

"fatal error: use of unimplemented initializer" when running #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mctoon opened this issue Mar 27, 2015 · 3 comments
Closed

"fatal error: use of unimplemented initializer" when running #21

mctoon opened this issue Mar 27, 2015 · 3 comments

Comments

@mctoon
Copy link

mctoon commented Mar 27, 2015

I downloaded the zip, open in freshly updated xcode 6.2 and get this error:

/path-to/TableViewCellWithAutoLayoutiOS8-master/TableViewCellWithAutoLayout/TableViewController/TableViewController.swift: 10: 7: fatal error: use of unimplemented initializer 'init(nibName:bundle:)' for class 'TableViewCellWithAutoLayout.TableViewController'
(lldb)

@smileyborg
Copy link
Owner

Hi @mctoon,

Thanks for reporting this. Looks like it was caused by PR #19. Adding the following code back in to TableViewController.swift resolves the issue on Xcode 6.2:

override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?) {
    super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
}

I need to test this on Xcode 6.3 beta, but based on PR #19 implementing that method as above actually causes issues in Swift 1.2.

@smileyborg
Copy link
Owner

@mctoon Please give it a try again. I just pushed some changes that make the code compatible with both Xcode 6.2 (Swift 1.1) and Xcode 6.3 beta 4 (Swift 1.2).

@mctoon
Copy link
Author

mctoon commented Apr 8, 2015

Thank you, it works now.

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

No branches or pull requests

2 participants