摘要: 去这里http://developer.apple.com/iphone/library/samplecode/Reachability/Introduction/Intro.html#//apple_ref/doc/uid/DTS40007324-Intro-DontLinkElementID_2下载Reachability.m和Reachability.h,然后添加到你的项目里面,在需要测试网络连接class里面写这样的一个方法- (BOOL)testConnection {BOOL result = YES;Reachability *reach=[Reachability shared 阅读全文
posted @ 2012-09-19 17:34 hellocby 阅读(1159) 评论(0) 推荐(0) 编辑
摘要: 1.导入MessageUI.framework框架2.在需要应用的控制器头文件:#import <MessageUI/MessageUI.h>,并加入委托:<MFMailComposeViewControllerDelegate>3.实现方法:-(void)displayComposerSheet{ MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; picker.mailComposeDelegate = self; [picker setSubject:@ 阅读全文
posted @ 2012-09-19 14:49 hellocby 阅读(4465) 评论(0) 推荐(0) 编辑