【发布时间】:2015-04-19 18:39:37
【问题描述】:
我在使用 Firebase 查询时遇到了一些问题。我想查询对象,其中对象子值包含某个字符串。到目前为止,我有一些看起来像这样的东西:
Firebase *ref = [[Firebase alloc] initWithUrl:@"https://dinosaur-facts.firebaseio.com/dinosaurs"];
[[[[ref queryOrderedByKey] queryStartingAtValue:@"b"] queryEndingAtValue:@"b~"]
observeEventType:FEventTypeChildAdded withBlock:^(FDataSnapshot *snapshot) {
NSLog(@"%@", snapshot.key);
}];
但这只会给出起始值为“b”的对象。我想要包含字符串“b”的对象。我该怎么做?
【问题讨论】:
标签: ios objective-c iphone database firebase