Where's my code?

Seasoned C developer with i86 and embedded hardware but new to ios.

I built a screen with two buttons in Swift. But where is the source code? I see source listings that look like frameworks but nothing that contains my two buttons.

My next step is to assign a TCP/IP data string to each button. What library would be recommended for that?

TIA

I built a screen with two buttons in Swift.

Do you mean you created 2 buttons in the storyboard ?

.

But where is the source code?

To start with, you will not see any code when you create buttons (or objects) in Interface builder.

What you do next usually:

  • display the code of the view controller and the storyboard
  • control drag from the button to the code to create an IBAction
  • you will write the code to execute when tapping the button here
  • if you need to access the button itself, control drag again to create an IBOutlet

Note: you should study "Intro to App development with Swift" in Apple Books to learn the basics.

Where's my code?
 
 
Q