iOS UIViewController,why "self" become to "wild pointer" in viewDidUnloadH
my code snippet:
- (void)viewDidUnload{
[super viewDidUnload];
self.statusView = nil;
self.tableView = nil;
self.noDataView = nil;
}
In a rare situation. My app crashed in line "self.noDataView = nil;". When
i debug by "po self",it seemed that it's pointing something other than
current controller. What is possible reason?
PS:self.tableView's delegate and dataSource is set to "self" in "init"
method.Is any relation with this?
No comments:
Post a Comment