Answer the question
In order to leave comments, you need to log in
Why are buttons not associated in Xcode?
I wanted to learn xcode, but not under iOS, but under OS X. Although 99% of the lessons are for iOS.
And I want to learn swift, and 99% of the lessons are under ObjC. In each video tutorial, a person makes a button on the form and cheerfully " drags " it with a
blue
line into the code and then writes functions on it And the coding mode under iOS is dragged normally from the TouchInside event, but I want OS X. I choose Coca App.
In C++ Builder, 7 years ago (0_oh my, how time flies) I double-clicked on a button and wrote further the code that it called. And here I just have a stupor in this place.
So I made a button - how and where to write the code so that it calls it?
Now for myself I want to write a software for processing text files in a certain way. The logic and algorithm itself do not raise questions, but the interface is completely unknown to me and the syntax is familiar from ancient fragments of C ++ only.
Answer the question
In order to leave comments, you need to log in
Move the mouse, hold down the RMB and, while holding the mouse button, drag in the assistant inside the class, and then choose not Outlet, but Action. If the simplest application with one button (without any changes to the form parameters) fails to do this, then, IMHO, you have some problems in the development environment itself.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question