-
Notifications
You must be signed in to change notification settings - Fork 338
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
Not working with Swift #42
Comments
Yeah, I think all you have to do is extending BLKDelegateSplitter with the protocol you want to use. In your case UITableViewDelegate. |
I'm pretty new to Swift and iOS and I spent a lot of hours to come to the conclusion that the break was with this class. Modifying the BLKDelegateSplitter class to conform to the UITableViewDelegate protocol fixed it for me. I have the demo running now with a Swift based view controller. |
@trevisthomas could you show your BLKDelegateSplitter conformation to the UITableViewDelegate? |
Just edit the BLKDelegateSplitter.h file. Replace the @implementation declaration at line 29 with:
|
Hi rafalkitta, I tried with your extension so I don't get the compiler error. But at run time, the Have you modify anything else to make it work ? I use Swift 2.0 |
It appeared I have to make a strong reference to the splitter because Works perfectly now, great component ! |
This is working fine in swift 4 also
|
Hello i try to use this repo but this is not working in swift.
Gives an problem with the tableview.delegate downcast, has anyone solution for this problem?
Greetz
The text was updated successfully, but these errors were encountered: