PhotoViewer
PhotoViewer copied to clipboard
Memory crash problem
I migrated my app to xcode5 and ios7 because apple required it. If I run app on io7- it is ok but if I run app on io7+ I have this problem:
[EGOPhotoImageView setPhoto:]: message sent to deallocated instance 0x166b55d0
This is my code:
GetGalleryHomePhotoItem * item = [self.items objectAtIndex:indexPath.row];
NSMutableArray * photos = [[NSMutableArray alloc] init];
NSURL * url = ...
MyPhoto *photo = [[MyPhoto alloc] initWithImageURL:url name:@"." idPhoto:[item.IdFoto stringValue]];
[photos addObject:photo];
MyPhotoSource *source = [[MyPhotoSource alloc] initWithPhotos:photos];
MyGalleryViewController *photoController = [[MyGalleryViewController alloc] initWithPhotoSource:source];
photoController.title = @"";
self.navigationController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
self.navigationController.modalPresentationStyle = UIModalPresentationFullScreen;
[self.navigationController pushViewController:photoController animated:true];
[photoController moveToPhotoAtIndex:0 animated:FALSE];
can you help me please?
Thanks
Luca