"Sending a message to a freed instance" is an error that usually occurs when your class receives dealloc'ed but is still a delegate of something (maybe a table view, a collection view, etc.), so it still tries Receive messages. If so, you can try setting these delegates to zero in the dealloc method of your view controller:
- (void)dealloc {
tableview.delegate = nil;
}
Hope this helps
source
share