tableView:heightForHeaderInSection消息发送到解除分配的实例

时间:2016-12-16 13:32:55

标签: ios objective-c uitableview

在我的流程中,重定向v1到v2到v3到v4 .... v9。现在,当我到达v9并且那时我收到远程通知时间“DidReceiveRemoteNotificationWillCall”。现在我从通知重定向到V10 Screen,那时我的应用程序崩溃,并将 [V5 tableView:heightForHeaderInSection] 消息发送到解除分配的实例。

现在我不知道,如何调用V5屏幕的tableview方法

请帮我解决这个问题。我在最近3天内遇到了这个问题。但没有找到主要问题。

我的代码中没有什么大而复杂的东西:

 todayAppointmentScreen=[[Confirmation3VC alloc]initWithNibName:@"Confirmation3VC" bundle:nil];
                        [self.navControl pushViewController:currentLocationScreen animated:YES];

我只是像上面代码一样重定向。

提前致谢,

1 个答案:

答案 0 :(得分:0)

请尝试将以下行添加到您的vc5

- (void) dealloc {
      self.tableView.delegate = nil; 
      self.tableView.datasource = nil; 
}