用CoreData存储UIImage,UIImage和Binary Data怎么相互转换
1个回答
2015-07-10
展开全部
//haitao
NSManagedObject *selectedObject = [[self fetchedResultsController] objectAtIndexPath:indexPath];
UIImage *image1 = [UIImage imageWithData:[selectedObject valueForKey:@"imgPng"]];
cell.imageView.image = image1;
NSManagedObject *selectedObject = [[self fetchedResultsController] objectAtIndexPath:indexPath];
UIImage *image1 = [UIImage imageWithData:[selectedObject valueForKey:@"imgPng"]];
cell.imageView.image = image1;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询