简体   繁体   中英

How to display images full size programmatically in iOS

In my iOS application I want to display images in zoom. When tap the image it should comes to full view and back.

How do I view images in full screen programmatically in iOS?

在图像显示中,将UIImageViewcontentMode视为UIViewContentModeScaleAspectFitUIViewContentModeCenter

Add an imageview for your screen what ever you want, display image on that using

imageview.image = [UIImage imageNamed:@"image.jpg"];

if you want back just remove imageview on a button click or timer what ever you wane using

[imageview removeFromsuperview]; 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM