-(void) pickImage{
UIImagePickerController *m_imagePicker = [[UIImagePickerController alloc] init];
if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary]) {
m_imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
m_imagePicker.delegate = self;
[m_imagePicker setAllowsEditing:NO];
UIPopoverController *popover = [[UIPopoverController alloc] initWithContentViewController:m_imagePicker];
self.popoverController = popover;
[popoverController presentPopoverFromRect:CGRectMake(0, 0, 300, 300) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
[popover release];
[m_imagePicker release];
}else {
UIAlertView *alert = [[UIAlertView alloc]initWithTitle:nil message:@"Error accessing photo library!" delegate:nil cancelButtonTitle:@"Close" otherButtonTitles:nil];
[alert show];
[alert release];
}
}
分享到:
相关推荐
使用全屏幕视图在 iPad、iPhone 或 iPod touch 上演示。或者使用视频镜像在 HDTV 上演示它,并使用演讲者显示在设备上预览幻灯片和边注。Keynote 会配合 iCloud 使用,因此您的演示文稿将在您的所有 iOS 设备上自动地...
详细介绍iphone、ipad的发展历史,介绍他们的使用方法和破解方法,以及高级应用技巧
《iPhone4与iPad开发基础教程》PDF版本下载
iOS开发一个项目既能在iphone上运行,也能再Ipad上运行
苹果手机iphone5s iphone6 iphone67 IPAD23456 IPADmini1原厂图纸维修原理图PCB图合集: IPAD系列 IPAD系列3G4G版改WiFi版 iphone5s iphone6 东芝+闪迪_1.jpg 东芝硬盘容量排列.jpg 最好用的pdf阅读软件.exe 海力士...
本书旨在以教程的形式讲解如何使用本地iPhone SDK 进行iPhone/iPad 开发。首先介绍了Objective-C、Xcode、Interface Builder、视图控制器、标准事件和动作模型等基础知识,接着介绍了一些数据访问方法与出色的硬件...
A Learner’s Guide to Creating Objective-C Applications for the iPhone and iPad Book Description : Let’s say you have a killer app idea for iPhone and iPad. Where do you begin? Head First iPhone and...
深入浅出iPhone/iPad开发(第2版)是HeadFirst系列图书的一本最新力作。全书通过轻松的图文方式,由浅入深地向读者...《深入浅出iPhone/iPad开发(第2版)》面向各层次的苹果产品开发人员,尤其适合初学的开发者阅读使用。
ituzi手机助手demo源码只是简单的电脑与手机初步建立连接,获取iphone基本信息,其他功能开发中 使用前请检查itunes是否已安装64位版本,我使用的是iTunes 64位_12.12.2.2 不需要iTunesMobileDevice.dll 本程序...
《深入浅出iPhone/iPad开发(第2版)》是HeadFirst系列图书的一本最新力作。全书通过轻松的图文方式,... 《深入浅出iPhone/iPad开发(第2版)》面向各层次的苹果产品开发人员,尤其适合初学的开发者阅读使用。
iphone和ipad适配
学习Iphone 和 Ipad cocos2d 游戏开发
Head First iPhone and iPad Development
IPHONE IPAD UI 组件素材 还是比较实用的
使用全屏幕视图在 iPad、iPhone 或 iPod touch 上演示。或者使用视频镜像在 HDTV 上演示它,并使用演讲者显示在设备上预览幻灯片和边注。Keynote 会配合 iCloud 使用,因此您的演示文稿将在您的所有 iOS 设备上自动地...
需要mac系统+win系统+工程线配合使用 mac 进紫屏 win 修改参数 苹果ipad设备支持列表 iPad7,5 iPad 6 Wi-Fi iPad6,11 iPad 5 Wi-Fi iPad6,11 iPad 5 Wi-Fi A1822 iPad5,3 iPad Air 2 Wi-Fi A1566 iPad5,1 iPad mini ...
iPhoneFolder ipad iphone连接电脑查看文件
使用全屏幕视图在 iPad、iPhone 或 iPod touch 上演示。或者使用视频镜像在 HDTV 上演示它,并使用演讲者显示在设备上预览幻灯片和边注。Keynote 会配合 iCloud 使用,因此您的演示文稿将在您的所有 iOS 设备上自动地...
iphone与ipad高级编程指南
支持ipad iphone 完美越狱