ios - Objective C - Image to full screen -


I want to keep the full screen image but my result is:

  • first screen: image details Enter
here

full screen (this the image screen landscape (rotated)) image details Enter here

I want I will come across all screens in full screen

My function:

  - (zero) imgToFullScreen {if {[UIVie W animateWithDuration (IsFullScreen!): 0.5 Delay: 0 options: 0 Animations: ^ {// Save the last frame prevFrame = imagen.frame; // [fantasy set frame: [[UIScreen main screen] border]]; [Fantasy set frame: CGRactam (0,0,320,415)]; UIImage * portraitImage = [[UIImage alloc] initWithCGImage: imagen.image.CGImage]; UIImage * LandscapeImage = [[UIImage alloc] initWithCGImage: portraitImage.CGImage scale: 1.0 Orientation: UIImageOrientationRight]; Imagen.image = Landscape Image; Tabbar.hidden = Yes; Logo.hidden = Yes; Self.navigationController.navigationBarHidden = Yes; } Closing: ^ (BOOL End) {isFullScreen = true; }]; Return; } And {{UIView animated dislocation: 0.5 delays: 0 options: 0 animation: ^ {[imagery setframe: backyard]; NSDT * data = [[NSDTTA alloc] Init withbasebase 64 encoded string: wirejetimen option: 0]; Imagen.image = [UIImage imageWithData: data]; Tabbar.hidden = NO; Logo.hidden = NO; Self.navigationController.navigationBarHidden = No; } Closing: ^ (BOOL End) {isFullScreen = false; }]; Return; }}  

How can I solve it?

Why don not just rotate it with change?

  imagen.transform = CGAffineTransformMakeRotation (90.0);  

(which is always the picture) Set the duration to your keyWindow dimensions, rotate if necessary, while filling the material mode aspect

I want to put an image in a new modal view controller by any means, with the sole purpose of showing the image that has been initiated. You will not need to hide the navbar and use the flag, just dismiss the controller when appropriate. Your code will be written much better:

  - (minus) imageViewTouchedUp: (UIImageView *) imageView {[[[ImageViewerViewController alloc] initWithImageView: imageView] presentViewController: Self-Animated: self.presentAnimated completion: Zero ]; }  

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -