-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
some function not work #10
Comments
@cyvoit By now, JSPatch can't add method to an OC class if the method not exists in OC, I'm figuring out a way to solve this problem, would be update soon. |
I think |
@cyvoit it's a protocol, not an exists method. |
but why the other method of protocol can be run? |
@wy19901227 because the base class UITableViewController implemented some of the methods. |
XCTAssertFalse([[[UITableViewController alloc] init] respondsToSelector:@selector(tableView:didSelectRowAtIndexPath:)]);
XCTAssertTrue([[[UITableViewController alloc] init] respondsToSelector:@selector(tableView:cellForRowAtIndexPath:)]); Test succeeded! |
how to test? |
@wy19901227 add the test code to a test file, e.g. |
@cyvoit Solved in 653074f. We can add new method to OC class now. |
Hi, I think this engine is great! Thanks for your works!
I add a function
tableView_didSelectRowAtIndexPath
aftertableView_heightForRowAtIndexPath
indemo.js
, like this:when I click cells of the table view, Xcode didn't log "did select row at index path".
The text was updated successfully, but these errors were encountered: