简体   繁体   English

如何全屏显示照片库中的任何图像?

[英]How can I display any image from photo library at full screen?

In my iPhone program I need to choose any picture from the photo library and display it at full screen. 在我的iPhone程序中,我需要从照片库中选择任何图片并全屏显示。 I know how to work with picker and how to display at full size image that attached to project. 我知道如何使用选择器,以及如何以完整尺寸显示附加到项目的图像。 But I still have no idea how to solve my task. 但是我仍然不知道如何解决我的任务。 Is there any way to do it? 有什么办法吗? I mean - display any image from photo library at UIImageView without giving the user the choice. 我的意思是-在UIImageView中显示照片库中的任何图像,而无需用户选择。

Full screen means two things 全屏意味着两件事

  1. Have a UIImageView which is 320x480 located at 0,0 有一个UIImageView是320x480位于0,0
  2. Make sure the status bar is not displayed by using 确保未通过使用显示状态栏
[[UIApplication sharedApplication] setStatusBarHidden:YES];

Shai hai

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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