Learn about the resources folder. Learn how to add images to the resources folder and add an image to the playground.
- [Instructor] We've already looked at how to add resources…to the Xcode Playground by dropping them into…the resource script.…In Ipad Playgrounds you do not have file access…on your iPad to add those files.…You can add them, however, through iCloud,…the photo library, or your camera.…Let's add a pizza icon to the menu items…using different ways of getting images.…In the Playground code, go to the self row…at indexpath method.…Add under the code for the detailed text label,…the following:…cell?.imageView?.image.…
To add a UI Image, you'll notice in the completion bar,…a picture icon.…Tap that and a popover appears listing no images,…but giving you three choices.…This is an image resource icon, and it will directly…set an image into your playground.…The bottom choice is Take Photo.…Tap that,…and I happen to have pizza just handy right here,…which I'm going to take a picture of.…
Go ahead and Use Photo.…And you'll see in the images and in that little square…in the code, we have our pizza.…Close the box.…Hit Run My Code…
- 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.