i am new to Xcode and cannot figure out how I can create a button for my work in progress app. if anyone can give me instructions, that would be great.
Creating an object
Where do you want to create the button ? In a viewController ?how I can create a button for my work in progress app
What does not work ?
1 - inserting the button in the view ?
2 - connecting the button to an IBOutlet or to an IBAction ?
For the first:
Open the storyboard in Interface Builder
select the ViewController
Click on + at the top right to open the objects library
search for button
drag and drop the button where you want in the ViewController
the class defined for the ViewController in Interface Builder (in the Identity Inspector) is the class defined in the code for the class
if not set the class as needed
Code Block class MyViewController: UIViewController { }
then, the VC in IB must be of this class MyViewController
If that is not the problem, please explicit precisely the problem, what you try, what you expect, what you get, with a detailed sequence of your actions.
Did you solve your issue ?
If so, thanks to close the thread.
If not, please explain what the problem is.
If so, thanks to close the thread.
If not, please explain what the problem is.