How can I pass an action to UiKit Button using Kot...
# kotlin-native
m
How can I pass an action to UiKit Button using Kotlin/Native: when I used staticCFunction, I get this error:
kotlinx.cinterop.staticCFunction must take an unbound, non-capturing function or lambda, but captures at:
Also using
sel_registerName
the crashes when I click the button
button.addTarget(
target = _this_,
action = sel_registerName("action"),
forControlEvents = UIControlEventTouchUpInside
)