Skip to content

Memory crash problem #39

@lsantaniello

Description

@lsantaniello

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions