В Instrument-Leaks следующий код увеличивает память выделения всегда, когда я нажимаю PhotosObj . Releasing PhotosObj не работает.
if (PhotosObj) {
[PhotosObj release];
PhotosObj=nil;
PhotosObj=[[Photos alloc]initWithNibName:@"Photos" bundle:nil];
}
else {
PhotosObj=[[Photos alloc]initWithNibName:@"Photos" bundle:nil];
}
[self.navigationController pushViewController:PhotosObj animated:YES];
Пожалуйста, уточните меня.
Заранее спасибо