This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSIndexPath *zeroPath = [self.tableView.indexPathsForVisibleRows objectAtIndex:0]; | |
STRPost *zeroPost = [self.fetchedResultsController objectAtIndexPath:zeroPath]; | |
CGRect originalPosition = [self.tableView rectForRowAtIndexPath:zeroPath]; | |
CGPoint oldContentOffset = self.tableView.contentOffset; | |
[self.managedObjectContext mergeChangesFromContextDidSaveNotification:note]; | |
NSIndexPath *newIndexPath = [self.fetchedResultsController indexPathForObject:zeroPost]; | |
CGRect newPosition = [self.tableView rectForRowAtIndexPath:newIndexPath]; | |
CGFloat offsetPosition = originalPosition.origin.y - oldContentOffset.y; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface NSString (KKEmojiHandling) | |
- (NSUInteger)KK_composedLength; | |
@end |