摘要: // 右边索引的标题数组- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView{ NSMutableArray *array = [NSMutableArray array]; for(int section='A';section<='Z';section++) { [array addObject:[NSString stringWithFormat:@"%c",section]]; } return array;}// 自定义索引与数组的对应关系- 阅读全文
posted @ 2013-01-21 18:45 白条围巾 阅读(5659) 评论(0) 推荐(0) 编辑
摘要: 导入MessageUI.framework.h文件中#import<MessageUI/MessageUI.h>#import<MessageUI/MFMailComposeViewController.h>实现MFMailComposeViewControllerDelegate,MFMessageComposeViewControllerDelegate.m文件//邮件-(void)showMailPicker { ClassmailClass = (NSClassFromString(@"MFMailComposeViewController" 阅读全文
posted @ 2013-01-21 16:09 白条围巾 阅读(3146) 评论(0) 推荐(0) 编辑
摘要: //sdk中提供了方法可以直接调用UIImage*img=[UIImageimageNamed:@"some.png"];NSData*dataObj=UIImageJPEGRepresentation(img,1.0); //下面是sdk中UIImage.h头文件中的内容UIKIT_EXTERNNSData*UIImagePNGRepresentation(UIImage*image);//returnimageasPNG.MayreturnnilifimagehasnoCGImageReforinvalidbitmapformatUIKIT_EXTERNNSData*U 阅读全文
posted @ 2013-01-21 16:08 白条围巾 阅读(42549) 评论(0) 推荐(1) 编辑