I have a UIImageView
within a UITableViewCell
and want to expand it to fill the full screen, I have setup my UIGestureRecognizer
and am using this code to expand the frame:
[UIView animateWithDuration:1.0 animations:^{
[self.ImageView setFrame:[[UIScreen mainScreen] applicationFrame]];
}];
However the UIImageView
will only expand to fill the UITableViewCell
and does not fill the full screen.
Any help would be much appreciated.
Following method will help u to get image in cell to full Screen then get it back to same place.
You need to add gestureRecognizer to imageView and set selector as cellImageTapped
Declare UIImageView *temptumb,fullview; as instance variable.
UITableViewCell
only expand when reloaddata or reloadRowsAtIndexPaths:withRowAnimation otherwise it not change size in table,Simply you addUIImageView
in self.view and hide image view,when tap the cell image to change image view image after hide image view when close full view