search

Home  >  Q&A  >  body text

objective-c - ios ipad横屏打开系统相册和拍照

巴扎黑巴扎黑2757 days ago588

reply all(1)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-02 09:32:49

    if (ISIPAD)

        {
            
            [[NSOperationQueue mainQueue] addOperationWithBlock:^{
                

    // UIPopoverController *popover = [[UIPopoverController alloc] initWithContentViewController:imagePicker];
    // m_pPopoverController= popover;
    // [m_pPopoverController presentPopoverFromRect:CGRectMake(0, 0, 500, 500) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionLeft animated:YES];
    // imagePicker.view.transform = CGAffineTransformMakeRotation(M_PI*3/2);

                [self presentViewController:imagePicker animated:YES completion:nil];
    
            }];
    
            
        }else if (ISIPHONE)
        {
            [self presentViewController:imagePicker animated:YES completion:nil];
        }
    

    reply
    0
  • Cancelreply