Learn about the live view frame. Learn to use frame for layout of views in playgrounds.
- [Instructor] You've learned how to add views…to a Playground live view.…You've also learned how to use quick looks…to understand how your program is working.…There's one more quirk of live views I want to talk about,…using quick looks, how to lay out your views.…Make a new line under the Playground page calls,…menuBoard.view.frame.…Open the show result.…
Extend it out a little bit, so you can read it.…Open the show result, the size is 375 points wide…by 668 points high.…If that sounds familiar, it is.…That's the resolution in points of an iPhone 7 in portrait.…Go ahead and close Xcode.…Go to the iPad's My Playgrounds page.…Menu board should be there.…Load the playground and open it.…
Run the code.…On an iPad Mini, you'll get our pizza list.…On some devices, you might get an error.…As of this recording, there is a bug in Playgrounds.…But it won't affect what we need to do,…and we'll be resolving it shortly, when we go back to Xcode.…Find the quick look for the frame.…You'll see it is 768 by 1024,…the size of my iPad Mini in landscape.…
- 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
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.