In my UIView displayed.
UIView
Inside the same UIView class, I have a method that I would like to execute when a button is clicked.
When everything is done programmatically, without using Interface Builder , how can you link these two together?
Use the UIButton addTarget: action: forControlEvents: message to indicate the selector for the UIControlEventTouchUpInside event.
[myButton addTarget:self action:@selector(buttonClicked:) forControlEvents:UIControlEventTouchUpInside];
UIControl addTarget: forControlEvents:
Source: https://habr.com/ru/post/1382747/More articles:How to define a static operator <Android service + countdown = not working - androidhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1382744/writing-integration-tests-to-test-database-web-service-calls&usg=ALkJrhhQyU6JbVPBrvqGfSa7qnqFpxvzwgWix: Can I put a condition on the RemoveFolderEx element only to run when the program is uninstalled? - windows-installerFix exceptions and errors - javaJavaScript (with Ajax) from PHP and output buffering - javascriptjava.net.SocketException: software caused connection interruption: socket write error - javaSQL char to compare varchar why? - sql-serverPassing C # function pointers to dlls C ++ / CLI - c ++How can I mirror a multidimensional array in javascript? - javascriptAll Articles