网站建设资讯

NEWS

网站建设资讯

uiimagepickerviewcontroller-创新互联

if(0==buttonIndex)

双台子网站建设公司创新互联建站,双台子网站设计制作,有大型网站制作公司丰富经验。已为双台子1000+提供企业网站建设服务。企业网站搭建\外贸营销网站建设要多少钱,请找那个售后服务好的双台子做网站的公司定做!

  {

    if (![UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeCamera]) {

      UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"" message:@"当前设备不支持拍照功能" delegate:nil

                         cancelButtonTitle:@"确定" otherButtonTitles: nil];

      [alert show];

      [alert release];

    }

    else{

        CameraPicker = [[UIImagePickerController alloc] init];

        CameraPicker.delegate = self;

        CameraPicker.allowsEditing = YES;

        CameraPicker.sourceType = UIImagePickerControllerSourceTypeCamera;

        [self presentViewController:CameraPicker animated:YES completion:^{}];

    }

  }else if(1==buttonIndex)

  {

    //相册

    p_w_picpathpicker = [[MyPickerViewController alloc] initWithNum:9];

    p_w_picpathpicker.delegate = self;

    p_w_picpathpicker.mydelegate = self;

    p_w_picpathpicker.allowsEditing = NO;

    p_w_picpathpicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;

    [self presentViewController:p_w_picpathpicker animated:YES completion:^{}];

  }#pragma mark –

#pragma mark Camera View Delegate Methods

- (void)p_w_picpathPickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {

  UIImage* p_w_picpath = [info objectForKey:@"UIImagePickerControllerOriginalImage"];

  [p_w_picpathview setImage:p_w_picpath];

  if ([picker isEqual:p_w_picpathpicker]) {

    [p_w_picpathpicker addImage:p_w_picpath Index:p_w_picpathpicker.currentNum+1];

    [p_w_picpathpicker popViewControllerAnimated:YES];

  }

  else{

    [picker dismissViewControllerAnimated:YES completion:^{}];

    [self sendImageWithArray:[NSArray arrayWithObjects:p_w_picpath, nil]];

  }

}

- (void)p_w_picpathPickerControllerDidCancel:(UIImagePickerController *)picker {

  [picker dismissViewControllerAnimated:YES completion:^{}];

}

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


网站题目:uiimagepickerviewcontroller-创新互联
文章分享:http://njwzjz.com/article/dsegej.html