Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding a Label to my Storyboard in Xcode

Tags:

xcode

iphone

I am using the latest Xcode and I am developing an iOS 10 app. Now I want to add a Button and a Label to my Storyboard. How?

I currently have the First and Second Tab/Page and im a total Xcode newbie. I had a Hackintosh but it was slow, so I bought a Mac and now I am ashamed not to know how to add a Label item. I hope they will add a VisualStudio-like Interface as a optional setting... So back to the Question, how should I add Items? I am running El Capitan if it helps.

like image 669
hungrybeast Avatar asked Oct 02 '16 18:10

hungrybeast


3 Answers

In xcode 10.1 the Library to get a label is now on top next to the standard editor and assistant editor. I am new to xcode and was following an old video tutorial so it took me a while to find it.

location of label for library xcode

like image 161
Roger Perez Avatar answered Oct 21 '22 12:10

Roger Perez


In Xcode 11.2, the Library's icon changed to a plus sign. enter image description here

like image 33
Jichao Avatar answered Oct 21 '22 13:10

Jichao


Within Xcode make sure Utilities are visible. Look at the top right of your Xcode window and ensure the Utilities icon is blue:

enter image description here

Now at the bottom of the Utilities pane, you should see a Filter field. In this field you can search for "Label" and "Button". When you have what you want, click and drag it to your storyboard.

I would strongly recommend you do an online Xcode course or check out some YouTube videos. It will be definitely worth the time and money!

like image 37
Monomeeth Avatar answered Oct 21 '22 14:10

Monomeeth