_安静ゝ 发表于 2012-12-19 22:18:49

上传时选择文件--UIActionSheet,UIImagePickerController

<div id="cnblogs_post_body">上传文件时,我们都的从本地中选择或用相机来拍摄得到文件。
一个上传按钮,单击事件
<div class="cnblogs_code"> 1 -(IBAction)btnClick{ 2    UIActionSheet* actionSheet = [ 3                                                initWithTitle:@"请选择文件来源" 4                                                   delegate:self 5                                        cancelButtonTitle:@"取消" 6                               destructiveButtonTitle:nil 7                                        otherButtonTitles:@"照相机",@"摄像机",@"本地相簿",@"本地视频",nil]; 8             ; 9             ;10 }
页: [1]
查看完整版本: 上传时选择文件--UIActionSheet,UIImagePickerController