Sometimes when working with UI objects, the connection between the object and your code will be wrong, or it will break. On this video, learn how to troubleshoot broken connections to get your apps working again.
- [Instructor] One of the most common issues…that those who are new to Xcode run into…is with connections to user interface elements.…So for example, you might create an app…and you have your user interface element set up…and then you click the button like you're supposed to…and nothing happens so what I want to do…is take a moment to be able to diagnose…and correct these issues.…Let's head over to Xcode.…In Xcode I'm going to stop the running application…and hide the debug area,…but note that even though I didn't show it…there were no errors.…
So this happens a lot.…Your app doesn't work, but you don't have any errors…in your code to point you in the right direction.…If that's the case, the most likely cause…is typically a connection…between a user interface element and code.…So, how do you know that the connections are valid?…I'm still in the assistant editor…so I can see both my user interface and my code…at the same time.…At the top of my code I have my two IB outlets.…Remember, an IB outlet, IB standing for Interface Builder,…
- Installing Xcode
- Creating your first project
- Editing code
- Creating snippets
- Prototyping in playgrounds
- Implementing version control with Git
- Building and connecting the interface
- Compiling and debugging apps in Xcode
- Creating workspaces for sharing resources and code
Skill Level Beginner
1. Getting Started
2. Edit Code
3. Source Control
4. Interface Builder Basics
5. Compile and Debug
Create a workspace2m 51s
Next steps1m 5s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.