Image views display images. See how to import images into your apps, how to display them, and how to choose how the images scale.
- [Narrator] Now, we're going to look…at importing and using images.…Images, unlike the rest of iOS UI objects built…into the operating system that are, virtually, the same,…images are a little bit different,…so let's take a look at how to use those.…So, I've selected assets.xcassets, and this is where you're…going to store your graphical assets for your project.…Go in there, and then hit the plus button…down here at the bottom of the editor.…And, choose import.…
Find the image you want to import.…If you have the exercise files, it's in the assets folder.…This particular image is what happens…when a programmer tries to do art, so let's import that.…And, with that selected, you can see the asset right here,…and then you have this, one x, two x, and three x.…And, these are for the different resolutions,…so you can actually click and drag…the appropriate image into the appropriate slot.…The way that the file size works…is you can actually click on this and scroll down…and see the image size, 960 by 540 pixels.…
So, for two x, you simply take both values and multiply them…
- Advanced UI controls
- Creating alert controllers
- Displaying web content
- Creating a collection view controller
- Creating a custom data type
- Creating tabbed apps
- Importing and setting icons for your apps
- Publishing your app to the App Store
Skill Level Beginner
iOS and watchOS App Development: Notificationswith Steven Lipton3h 45m Intermediate
1. Mastering Views
2. Display Web Content
3. Collection Views
4. Multi-View Templates
5. Publish an App
Next steps1m 21s
- 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.