<i id='tC7yi'><tr id='tC7yi'><dt id='tC7yi'><q id='tC7yi'><span id='tC7yi'><b id='tC7yi'><form id='tC7yi'><ins id='tC7yi'></ins><ul id='tC7yi'></ul><sub id='tC7yi'></sub></form><legend id='tC7yi'></legend><bdo id='tC7yi'><pre id='tC7yi'><center id='tC7yi'></center></pre></bdo></b><th id='tC7yi'></th></span></q></dt></tr></i><div id='tC7yi'><tfoot id='tC7yi'></tfoot><dl id='tC7yi'><fieldset id='tC7yi'></fieldset></dl></div>

<legend id='tC7yi'><style id='tC7yi'><dir id='tC7yi'><q id='tC7yi'></q></dir></style></legend>

    1. <small id='tC7yi'></small><noframes id='tC7yi'>

      <tfoot id='tC7yi'></tfoot>
        <bdo id='tC7yi'></bdo><ul id='tC7yi'></ul>

      在 iPhone 中显示图库中的图像

      时间:2024-04-15

          <bdo id='fcQ0m'></bdo><ul id='fcQ0m'></ul>

              <tbody id='fcQ0m'></tbody>
          1. <small id='fcQ0m'></small><noframes id='fcQ0m'>

            <legend id='fcQ0m'><style id='fcQ0m'><dir id='fcQ0m'><q id='fcQ0m'></q></dir></style></legend>
              <tfoot id='fcQ0m'></tfoot>

                <i id='fcQ0m'><tr id='fcQ0m'><dt id='fcQ0m'><q id='fcQ0m'><span id='fcQ0m'><b id='fcQ0m'><form id='fcQ0m'><ins id='fcQ0m'></ins><ul id='fcQ0m'></ul><sub id='fcQ0m'></sub></form><legend id='fcQ0m'></legend><bdo id='fcQ0m'><pre id='fcQ0m'><center id='fcQ0m'></center></pre></bdo></b><th id='fcQ0m'></th></span></q></dt></tr></i><div id='fcQ0m'><tfoot id='fcQ0m'></tfoot><dl id='fcQ0m'><fieldset id='fcQ0m'></fieldset></dl></div>
                本文介绍了在 iPhone 中显示图库中的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我是 iPhone 的新手,现在正处于学习阶段.实际上,我想实现读取存储在 iPhone PHOTO Gallery 中的图像,然后将其显示到我的应用程序中.

                I am new in iPhone and in learning phase now a days. Actually i want to implement that i read images stored in my iPhone PHOTO Gallery and then display it onto my application.

                我在许多搜索引擎中搜索过,但找不到任何东西.你们都是这里的专业人士.请通过一些代码或教程指导我.

                I have searched in many Search Engines but could not find any thing. You all are professionals over here. Please guide me thrrough some code or some tutorial.

                非常感谢

                推荐答案

                编辑

                还请查看此问题/答案以及用于从 uiimagepickercontroller 获取图像的方法,因为我之前提到的方法已被弃用.

                Also check out this question/answer and the method that is used to get the image from uiimagepickercontroller as the method that i have mentioned earlier is deprecated.

                didFinishPickingMediaWithInfo 返回零照片

                查看文档 http://developer.apple.com/library/ios/#documentation/uikit/reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html并查看此链接

                check out the documentation http://developer.apple.com/library/ios/#documentation/uikit/reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html and check out this link

                http://iphone.zcentric.com/2008/08/28/using-a-uiimagepickercontroller/

                它有大致相同的示例.

                您可以使用这些方法在您的 UIImageView 对象中获取图像

                You can use these methods to get the image in you UIImageView object

                - (void)selectPhotos
                {
                    UIImagePickerController *picker = [[UIImagePickerController alloc] init];
                    picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
                    picker.delegate = self;
                    [self presentViewController:picker animated:YES completion:nil];
                    //Deprecated In IOS6[self presentModalViewController:picker animated:YES]; 
                    [picker release];
                }
                
                - (void)imagePickerController:(UIImagePickerController *)picker
                        didFinishPickingImage:(UIImage *)image
                                  editingInfo:(NSDictionary *)editingInfo
                {
                    imageView.image = image;
                    [[picker parentViewController] dismissModalViewControllerAnimated:YES];
                }
                

                这篇关于在 iPhone 中显示图库中的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:暂停 UIImageview 动画 下一篇:使用 Swift 对 ImageView 的 iOS 模糊效果

                相关文章

                <i id='ZUrB2'><tr id='ZUrB2'><dt id='ZUrB2'><q id='ZUrB2'><span id='ZUrB2'><b id='ZUrB2'><form id='ZUrB2'><ins id='ZUrB2'></ins><ul id='ZUrB2'></ul><sub id='ZUrB2'></sub></form><legend id='ZUrB2'></legend><bdo id='ZUrB2'><pre id='ZUrB2'><center id='ZUrB2'></center></pre></bdo></b><th id='ZUrB2'></th></span></q></dt></tr></i><div id='ZUrB2'><tfoot id='ZUrB2'></tfoot><dl id='ZUrB2'><fieldset id='ZUrB2'></fieldset></dl></div>

                1. <legend id='ZUrB2'><style id='ZUrB2'><dir id='ZUrB2'><q id='ZUrB2'></q></dir></style></legend>
                    <bdo id='ZUrB2'></bdo><ul id='ZUrB2'></ul>
                    <tfoot id='ZUrB2'></tfoot>

                  1. <small id='ZUrB2'></small><noframes id='ZUrB2'>