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?
在图像显示中,将UIImageView
的contentMode
视为UIViewContentModeScaleAspectFit
和UIViewContentModeCenter
。
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.