Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The UIImageView is one of the
least complicated classes in the iOS SDK. As you know, an image view
is responsible for displaying images. There are no tips or tricks
involved. All you have to do is to instantiate an object of type
UIImageView and add it to your
views. Now, I have a picture of Apple MacBook Air and I would like to
display it in an image view. Let’s start with our view controller’s
header file:
#import <UIKit/UIKit.h>
@interface Displaying_Images_with_UIImageViewViewController
: UIViewController
@property (nonatomic, strong) UIImageView *myImageView;
@end