Graphics Programs Reference
In-Depth Information
One of the issues of configuring a XIB file that has views stacked on top of each other is
that it is difficult to select the views that are totally obscured. When this happens, you can
make connections by dragging from the objects in the outline view instead of their visual
representations on the canvas.
In ImageViewController.h , add curly brackets to ImageViewController 's in-
terface and then make the connections shown in Figure 15.11 . These connections should
be instance variable outlets with weak storage.
Now add a property in ImageViewController.h to hold the image.
@interface ImageViewController : UIViewController
{
__weak IBOutlet UIImageView *imageView;
__weak IBOutlet UIScrollView *scrollView;
}
@property (nonatomic, strong) UIImage *image;
@end
Search WWH ::




Custom Search