ribesg
10/30/2020, 1:57 PMclass MyUITableViewDelegate : NSObject(), UITableViewDelegateProtocol {
companion object : NSObjectMeta(), UITableViewDelegateProtocolMeta
override fun tableView(tableView: UITableView, didSelectRowAtIndexPath: NSIndexPath) {
// Things
}
override fun tableView(tableView: UITableView, heightForRowAtNSIndexPath: NSIndexPath): CGFloat =
UITableViewAutomaticDimension
}
ribesg
10/30/2020, 2:11 PMrusshwolf
10/30/2020, 2:32 PM@Suppress("CONFLICTING_OVERLOADS")
. I haven't tried it in a while but it's recommended in https://kotlinlang.org/docs/reference/native/objc_interop.html#subclassing-swiftobjective-c-classes-and-protocols-from-kotlinKris Wong
10/30/2020, 2:34 PMKris Wong
10/30/2020, 2:34 PMrusshwolf
10/30/2020, 2:35 PMKris Wong
10/30/2020, 2:37 PMribesg
10/30/2020, 2:48 PMribesg
10/30/2020, 2:48 PMribesg
10/30/2020, 2:51 PMribesg
10/30/2020, 2:52 PM@file:Suppress(
"CONFLICTING_OVERLOADS",
"PARAMETER_NAME_CHANGED_ON_OVERRIDE",
"RETURN_TYPE_MISMATCH_ON_OVERRIDE"
)
ribesg
10/30/2020, 2:53 PMKris Wong
10/30/2020, 3:00 PM