Это в мой контроллер зренияМетод dealloc не вызывается в окне просмотра contrller присутствует модальный
-(void)doctorsListAction
{
if(isFirst == YES)
{
[self getDoctorsListController];
[[self navigationController] presentModalViewController:doctorListViewNavigationController animated:YES];
[doctorListViewController release];
}
}
-(void)getDoctorsListController
{
//DoctorListViewController *doctorListViewController=[[[DoctorListViewController alloc]initWithNibName:nil bundle:nil]autorelease];
doctorListViewController=[[DoctorListViewController alloc]init];
doctorListViewNavigationController=[[UINavigationController alloc]initWithRootViewController:doctorListViewController];
doctorListViewController.doctorList=doctorList;
doctorListViewNavigationController.navigationBar.barStyle= UIBarStyleBlackOpaque;
[doctorListViewController release];
}
Он находится в DoctorListViewContrller
-(void)closeAction
{
printf("\n hai i am in close action*******************************");
//[doctorList release];
//[myTableView release];
//myTableView=nil;
printf("\n myTableView retainCount :%d",[myTableView retainCount]);
[[self navigationController] dismissModalViewControllerAnimated:YES];
}
//this method is not called I don't know why if it not called i will get memory issues
- (void)dealloc
{
printf("\n hai i am in dealloc of Doctor list view contrller");
[doctorList release];
[myTableView release];
myTableView=nil;
[super dealloc];
}
Это, безусловно, не имеет доступа к собственности. Доступ к свойствам должен осуществляться через явные сообщения или точечный синтаксис. Вы не можете просто написать имя свойства и получить доступ к этому свойству. – Chuck
@Chuck отредактирован, чтобы отразить вашу точку. Вероятно, это утечка на этой линии. –
О, да, я согласен (я тот, кто его поддержал). Я просто не хочу, чтобы люди путались о том, как работают свойства. – Chuck