Advertisement
Guest User

Untitled

a guest
Aug 30th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. INCommentObject *firstObject = [helpArray firstObject];
  2. NSInteger timestamp = firstObject.date;
  3. NSMutableArray *sortedMappedCommentsWithDuplicates = [[NSMutableArray alloc]initWithArray:sortedMappedComments];
  4. for (INCommentObject *object in sortedMappedCommentsWithDuplicates) {
  5. if (object.date > timestamp) {
  6. [sortedMappedCommentsWithDuplicates removeObject:object];
  7. } else if (object.date == timestamp) {
  8. for (int i = 0; helpArray.count; i++) {
  9. INCommentObject *obj = [helpArray objectAtIndex:i];
  10. if (object.comment_id == obj.comment_id) {
  11. [sortedMappedCommentsWithDuplicates removeObject:object];
  12. }
  13. }
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement