Here is the code I\'m using:
if (appDelegate.currentMainIndexPath != nil /* && doesPathExistInTableView */)
{
[tblView scrollToRowAtIndexPath:appDele
I iterated upon Kamran's answer:
+ (BOOL)isIndexPath:(NSIndexPath *)indexPath inTableView:(UITableView *)tableView {
if (!indexPath) {
return NO;
}
if (indexPath.section < [tableView numberOfSections]) {
if (indexPath.row < [tableView numberOfRowsInSection:indexPath.section]) {
return YES;
}
}
return NO;
}