Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory crash problem #39

Open
lsantaniello opened this issue Feb 11, 2014 · 0 comments
Open

Memory crash problem #39

lsantaniello opened this issue Feb 11, 2014 · 0 comments

Comments

@lsantaniello
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant