spierce7
06/28/2018, 7:10 PM@ObjCAction
fun buttonPressed() {
label.text = "Konan says: 'Hello, ${textField.text}!'"
}
It's not clear how the @ObjCAction
is routing to the button that's being pressed. It's also not clear how that button is being selected. Can anyone point me in the right direction?Vyacheslav Karpukhin [JB]
06/28/2018, 7:15 PM<connections>
<action selector="buttonPressed" destination="BYZ-38-t0r" eventType="touchUpInside" id="frh-jo-ppG"/>
</connections>
This can also be done programmatically: https://developer.apple.com/documentation/uikit/uicontrol/1618259-addtarget?language=objcspierce7
06/28/2018, 8:38 PMDenis Shurygin
06/29/2018, 8:56 AM@IBAction