Learn how to create a prototype application in an Xcode playground.
- [Instructor] You've activated live view.…We're going to build a prototype menu board…for the Huli Pizza Company…by adding views to the live view's view controller.…We'll add a UI text view to make a menu board.…Close the Assistant Editor for now.…Add a new property to our class, textView.…Var textView = UITextView.…Under that, add a string…that we'll use to keep the menu text.…
I added some initial text to the screen.…Var menuText = "Huli Pizza Company,"…and I'll do a \n for a new line.…Above viewDidLoad, add a new function, addViews.…This will add views to our current view.…In Playgrounds, you don't have an interface builder.…
You have to code each of your controls.…I'll show you an example of this with the textView object.…We'll make the textView…the full size of the view controller's frame,…so add to the new function…textView - UITextView,…parenthesis, and we'll use frame,…and the frame will be view.frame.…We'll set the font to something fun.…
I like this to have the look…of a chalkboard in a pizza restaurant,…
- Comparing iPad and Xcode playgrounds
- Creating and testing Swift classes and code in iPad and Xcode playgrounds
- Prototyping code
- Debugging and testing with Quick Look live views
- Using markup to interactively document code and create educational lessons
- Compiling code into playground books
Skill Level Intermediate
Learning Apple watchOS 3 App Developmentwith Steven Lipton2h 41m Intermediate
iOS App Development: Test-Driven Developmentwith Harrison Ferrone2h 14m Intermediate
iOS App Development: Notificationswith Steven Lipton1h 10m Intermediate
1. Introducing Playgrounds
2. Xcode Playgrounds
3. iPad Playgrounds
4. Markup and Playgrounds
5. Playground Books
Next steps1m 26s
- 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.