Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- INCommentObject *firstObject = [helpArray firstObject];
- NSInteger timestamp = firstObject.date;
- NSMutableArray *sortedMappedCommentsWithDuplicates = [[NSMutableArray alloc]initWithArray:sortedMappedComments];
- for (INCommentObject *object in sortedMappedCommentsWithDuplicates) {
- if (object.date > timestamp) {
- [sortedMappedCommentsWithDuplicates removeObject:object];
- } else if (object.date == timestamp) {
- for (int i = 0; helpArray.count; i++) {
- INCommentObject *obj = [helpArray objectAtIndex:i];
- if (object.comment_id == obj.comment_id) {
- [sortedMappedCommentsWithDuplicates removeObject:object];
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement