add a BOOL Variable to track if it's fullScreen.
in .h add property
@property (nonatomic, assign) BOOL isFullScreen;
@property (nonatomic, assign) CGRect originalRect;
in viewDidLoad, add these lines,
self.isFullScreen = NO;
self.originalRect = CGRectMake(0,0,153,230);//replace this by the zoomed out rect size that you want
and in your Enlarge:
- (void)Enlarge:(id)sender{
if(!self.isFullScreen){
[ImageView setFrame:CGRectMake(0, 20, (460/1.5), 480-20)]; //enlarge to fullscreen but exclude the status bar.
}else {
[ImageView setFrame:originalFrame];//
}
self.isFullScreen = !self.isFullScreen;
}
Regarding second question, Yes, that should work.