请帮助您查询下面描述的情况:
1 TABLE: shops: id | name | is_locked |
2 TABLE: products: id | name | price | shop_id
3 TABLE: rates: id | rate | is_accepted | shop_id
我有3张桌子,里面有商店,商店的产品和价格。现在我想对所有属于未锁定商店的产品进行分类,并按平均接受的商店价格订购。这个查询应该怎么样?
答案 0 :(得分:1)
你可以试试这个:
if(self.documentPicker) {
[self presentViewController:self.documentPicker animated:YES completion:nil];
return;
}
UIDocumentPickerViewController *vc =
[[UIDocumentPickerViewController alloc] initWithDocumentTypes:@[@"public.audio"] inMode:UIDocumentPickerModeImport];
vc.delegate = self;
self.documentPicker = vc;
[self presentViewController:vc animated:YES completion:nil];