Guest User

Untitled

a guest
May 25th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. [[[_conversationDBRef queryOrderedByChild:@"time"] queryStartingAtValue:@(time)] observeSingleEventOfType:FIRDataEventTypeValue withBlock:^(FIRDataSnapshot * _Nonnull snapshot) {
  2.  
  3. for (FIRDataSnapshot* child in snapshot.children) {
  4. NSDictionary* msgData = child.value;
  5. NSLog(@"msgData: %@", msgData);
  6. }
  7. }];
  8.  
  9. (lldb) po _conversationDBRef
  10. https://xxxxx-xxxxxx.firebaseio.com/Strike-Fighter/messages/4_5
  11.  
  12. (lldb) po [[_conversationDBRef queryOrderedByChild:@"time"] queryStartingAtValue:@(time)]
  13. (/Strike-Fighter/messages/4_5 {
  14. i = time;
  15. sp = "548914514.2122542";
  16. })
  17.  
  18. [[[_conversationDBRef queryWhereField:@"time" isGreaterThan:@100000]
  19. queryOrderedByField:@"population"];
Add Comment
Please, Sign In to add comment