Skip to content

Instantly share code, notes, and snippets.

@danielctull
Created April 2, 2014 08:42
Show Gist options
  • Save danielctull/9930308 to your computer and use it in GitHub Desktop.
Save danielctull/9930308 to your computer and use it in GitHub Desktop.
- (BOOL)tableViewDataSource:(DCTTableViewDataSource *)tableViewDataSource shouldReloadRowAtIndexPath:(NSIndexPath *)indexPath {
ISUIssue *issue = [tableViewDataSource objectAtIndexPath:indexPath];
NSArray *keys = [issue.changedValuesForCurrentEvent allKeys];
if ([issue.changedValuesForCurrentEvent objectForKey:ISUIssueAttributes.issueID]) return YES;
if ([keys containsObject:ISUIssueAttributes.issueID]) return YES;
if ([keys containsObject:ISUIssueAttributes.title]) return YES;
if ([keys containsObject:ISUIssueRelationships.components]) return YES;
return NO;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment