• controller.allowsEditing = NO;神医,


    -(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex

    {

        if (buttonIndex != actionSheet.cancelButtonIndex) {

            UIImagePickerController* controller = [[UIImagePickerControlleralloc] init];

            controller.delegate = self;

            if (buttonIndex == 0) {

                if (![UIImagePickerControllerisSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) {

                    return;

                }

                controller.sourceType = UIImagePickerControllerSourceTypeCamera;

            }

            else {

                controller.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;

            }

            controller.allowsEditing = NO;

            [SharedAppDelegate.window.rootViewControllerpresentModalViewController:controller animated:YES];

        }

     

    }

    枚举类型,没有初始化,默认会读取第一个的,

  • 相关阅读:
    4A安全体系
    Linux 安装 Nginx
    Linux 安装 Mysql
    Web容器对比
    Nginx 学习记录
    SO_REUSEADDR选项的平台差异(对于TCP)
    centos下搭建yum服务器
    IOCP 下行为投递的关键点
    网络包解包错误 与 标准io(linux)
    关闭ssh的dns反向解析
  • 原文地址:https://www.cnblogs.com/guligei/p/3490395.html
Copyright © 2020-2023  润新知