Gavin.han

致力于移动开发 技术改变生活

导航

2012年11月22日

摘要: 1.//HomeViewController.h//MailDemo#import<UIKit/UIKit.h>#import<MessageUI/MessageUI.h>@interfaceHomeViewController:UIViewController<MFMailComposeViewControllerDelegate>-(IBAction)displayComposerSheet;@end2.////HomeViewController.m//MailDemo//#import"HomeViewController.h"@ 阅读全文

posted @ 2012-11-22 20:39 gavin.han 阅读(826) 评论(0) 推荐(1) 编辑

摘要: 1.新建Empty Application,添加一个视图,设计xib如下:2.使用UIImagePickerController ,必须指定几个非常重要的属性:指定源的类型(指定之前要判断是否可用)、指定委托、指定图片是否可以编辑,设置完之后,就可以启动了,将其“推”出来即可。-(IBAction)takeNewPhoto:(id)sender{//创建图片选择器UIImagePickerController*imagePicker=[[UIImagePickerControlleralloc]init];//指定源类型前,检查图片源是否可用if([UIImagePickerControlle 阅读全文

posted @ 2012-11-22 14:30 gavin.han 阅读(10683) 评论(1) 推荐(1) 编辑