2011年10月17日

在tableview索引中显示搜索符号的方法

摘要: 代码如下,在UITableViewDataSource中设置- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView{NSMutableArray *arr = [[[NSMutableArray alloc] initWithCapacity:0] autorelease];[arr addObject:@"{search}"];//等价于[arr addObject:UITableViewIndexSearch];return arr;}效果图: 阅读全文

posted @ 2011-10-17 19:48 会走的云 阅读(164) 评论(0) 推荐(0)

iphone发邮件,带附件的代码

摘要: UIImage *image = [UIImage imageNamed:@"myImage.png"];MFMailComposeViewController *composer = [[MFMailComposeViewController alloc] init];composer.mailComposeDelegate = self;NSData *data = UIImagePNGRepresentation(image);[composer addAttachmentData:data mimeType:@"image/png" fileNa 阅读全文

posted @ 2011-10-17 19:48 会走的云 阅读(335) 评论(0) 推荐(0)

导航