I've been trying to set an imageView without the the user seeing it change when they rotate from landscape to portrait mode.
In willAnimateRotationToInterfaceOrientation
method, I re-set the image to the appropriate image (depending on if it's in landscape mode or portrait mode:
if (UIInterfaceOrientationIsLandscape(toInterfaceOrientation)) {
NSLog(@"Going to Portrait Mode.");
UIImage *footerImage = [UIImage imageNamed:@"SchoolImageLandscape.png"];
UIImageView *fView = [[UIImageView alloc] initWithImage:footerImage];
[self.tableView setTableFooterView:fView];
} else if (UIInterfaceOrientationIsPortrait(toInterfaceOrientation)) {
NSLog(@"Portrait Mode");
UIImage *footerImage = [UIImage imageNamed:@"SchoolImage.png"];
UIImageView *fView = [[UIImageView alloc] initWithImage:footerImage];
[self.tableView setTableFooterView:fView];
}
However, I'm having some trouble determining how to make it where the user doesn't see the change. Meaning when it rotates you see the larger image become a smaller image. I don't want this.
Does anyone know how to make the transition more user-friendly? I've also tried setting the imageView didRotateFromInterfaceOrientation
method and it wasn't any better.