darkmoon_uk
12/18/2018, 10:35 AMUITableViewDataSource
Protocol in pure Kotlin... The bridging seems to think I'm overriding a totally different method signature in the protocol, and so is throwing a compile error (on the return type). Is this expected? A bug? Workarounds exist with annotations?svyatoslav.scherbina
12/18/2018, 10:46 AMThe bridging seems to think I’m overriding a totally different method signature in the protocol, and so is throwing a compile error (on the return type)Could you clarify? Btw, to override Objective-C method, you have to use the same parameter names.
darkmoon_uk
12/18/2018, 10:48 AMclass Source : NSObject(), UITableViewDataSourceProtocol {
override fun tableView(tableView: UITableView, cellForRowAtIndexPath: NSIndexPath): UITableViewCell {...}
override fun tableView(tableView: UITableView, numberOfRowsInSection: NSInteger): NSInteger {...}
}
@ObjCMethod
to reaffirm ObjC signature, but no change.svyatoslav.scherbina
12/18/2018, 11:00 AMdarkmoon_uk
12/18/2018, 11:10 AMsvyatoslav.scherbina
12/18/2018, 11:12 AMdarkmoon_uk
12/18/2018, 11:27 AM