Exception:
request for rect at invalid index path
Code:
CGRect rect = [tableView rectForRowAtIndexPath:[NSIndexPath indexPathForRow:i inSection:0]];
Fix:
if ([tableView numberOfRowsInSection:0] <= i) {
return;
}
Maybe exist the better way