<small id='Oe4QF'></small><noframes id='Oe4QF'>

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

      <tfoot id='Oe4QF'></tfoot>
      <legend id='Oe4QF'><style id='Oe4QF'><dir id='Oe4QF'><q id='Oe4QF'></q></dir></style></legend>
        <bdo id='Oe4QF'></bdo><ul id='Oe4QF'></ul>

      如何在 iPhone 中单击 UIButton 时打开相机?

      时间:2023-07-08

        <small id='fFlZg'></small><noframes id='fFlZg'>

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

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

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

                本文介绍了如何在 iPhone 中单击 UIButton 时打开相机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                当我在 iPhone 应用程序中单击 UIbutton 时,我试图打开相机.我想将捕获的图像存储在我指定的位置.

                I am trying to open the camera when I click the UIbutton in iPhone app. I want to store the captured image in a location that I specify.

                推荐答案

                你需要使用这样的东西

                - (IBAction)selectPhotos
                {
                    UIImagePickerController *picker = [[UIImagePickerController alloc] init];
                    picker.sourceType = UIImagePickerControllerSourceTypeCamera;
                    picker.delegate = self;
                    [self presentModalViewController:picker animated:YES];
                    [picker release];
                }
                
                - (void)imagePickerController:(UIImagePickerController *)picker
                        didFinishPickingImage:(UIImage *)image
                                  editingInfo:(NSDictionary *)editingInfo
                {
                    imageView.image = image;
                    [[picker parentViewController] dismissModalViewControllerAnimated:YES];
                }
                
                
                - (IBAction)saveImage:(id)sender {
                    if(imageView.image) {
                        [self showProgressIndicator:@"Saving"];
                        UIImageWriteToSavedPhotosAlbum(imageView.image, self, @selector(finishUIImageWriteToSavedPhotosAlbum:didFinishSavingWithError:contextInfo:), nil);
                    }
                }
                

                这篇关于如何在 iPhone 中单击 UIButton 时打开相机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:与 NSAttributedString 真的很接近吗? 下一篇:具有按住动作和释放动作的 UIButton

                相关文章

              • <legend id='OLTaN'><style id='OLTaN'><dir id='OLTaN'><q id='OLTaN'></q></dir></style></legend><tfoot id='OLTaN'></tfoot>

                <small id='OLTaN'></small><noframes id='OLTaN'>

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

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