Recall & Review
beginner
What is a UIImageView used for in iOS development?
UIImageView is a view that displays an image in your app's user interface. It can show images from your app assets or system symbols.
Click to reveal answer
beginner
How do you load an image from your app's asset catalog into a UIImageView?
Use UIImage(named: "imageName") to create an image from your assets, then assign it to the UIImageView's image property.
Click to reveal answer
beginner
What is a system image in iOS and how do you use it?
System images are icons provided by Apple through SF Symbols. Use UIImage(systemName: "symbolName") to load them into UIImageView.
Click to reveal answer
intermediate
Why should you use system images (SF Symbols) instead of custom icons when possible?
System images are optimized for different sizes and weights, support dark mode automatically, and keep your app consistent with iOS design.
Click to reveal answer
intermediate
How can you make sure your UIImageView adapts well to different screen sizes?
Use Auto Layout constraints to position and size UIImageView. Also, set contentMode (like .scaleAspectFit) to keep image proportions.
Click to reveal answer
Which initializer loads an image from your app's asset catalog?
✗ Incorrect
UIImage(named:) loads images from your app's asset catalog by name.
How do you load a system symbol image into a UIImageView?
✗ Incorrect
UIImage(systemName:) loads SF Symbols, which are Apple's system icons.
What contentMode should you use to keep the image's aspect ratio inside UIImageView?
✗ Incorrect
.scaleAspectFit scales the image to fit inside the view while keeping its aspect ratio.
Why are SF Symbols recommended for icons in iOS apps?
✗ Incorrect
SF Symbols adapt to size, weight, and dark mode automatically, ensuring consistent design.
Which property of UIImageView controls how the image fits inside the view?
✗ Incorrect
contentMode defines how the image is scaled or positioned inside the UIImageView.
Explain how to display both a system image and an asset image in UIImageView.
Think about the two different UIImage initializers.
You got /3 concepts.
Describe why using Auto Layout and contentMode is important for UIImageView in different screen sizes.
Consider how images look on small and large devices.
You got /3 concepts.