at initial UIImageView i have set it to mCurrentImageView.contentMode = UIViewContentModeLeft;
so if the device rotate i will change contentMode but it had no effect. how can i fix it?
if ([UIDevice currentDevice].orientation == UIInterfaceOrientationLandscapeLeft || [UIDevice currentDevice].orientation == UIInterfaceOrientationLandscapeRight) {
mCurrentImageView.contentMode = UIViewContentModeScaleAspectFit;
}