A
A
alexandeche2020-05-11 00:16:51
Apple Xcode
alexandeche, 2020-05-11 00:16:51

Can't create insert outlet when dragging button to code in xcode?

5eb86e9b88f13661481753.png5eb86ea442323635704957.png
I want to add a button as a variable to the code, but I can't select the outlet. I need this in order to round the corners of the button. If you know, please tell me how you can round the corners of the button without it. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Vorobei, 2020-05-11
@alexandeche

Most likely you don't have a controller class set , so it can't associate an element with your class. Put the ViewController class in the inspector for the desired controller from the storyboard.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question