i know this question was asked several times, and i know the cause that it is calling the selector that was not belong to the class.
But, i want to know the best way to rectify these type of errors. I'm getting the following error in debug console:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ViewController length]: unrecognized selector sent to instance 0x76908e0'
I'm sure, i didn't called the length property anywhere in the code written in this controller.
I tried to debug it using line by line and it crashes somewhere in the binary and i am not able to get the exact cause of crashing the app.
I also tried to run the application with NSZombieEnabled
but didn't get any success with this as well.
Can anybody help me in how to get out of these type of issues? What is the best way to know the cause?
Thanks in advance.
************ Resolved ****************
I added the the following UITableViewDelegate method, but not returning anythign in this:
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {
}
It is causing the crash. I got this when i was just reading the whole source. Thanks all for your great support.