0
구문 분석 백엔드를 사용하여 샘플 응용 프로그램을 작성하려고합니다. 응용 프로그램과 테스트 클래스를 만들었습니다. 객체를 다시 얻으려면 PFquery 호출을 만들면 동일한 호출이 필요합니다. 맥.쿼리 API를 호출 할 때 sdk가 파손됩니다.
PFQuery *query = [PFQuery queryWithClassName:@"stock"];
[query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {
if (query.cachePolicy != kPFCachePolicyCacheOnly && error.code == kPFErrorCacheMiss) {
// No-op on cache miss - since the policy is not CacheOnly, this
// block will be called again upon receiving results from the network.
return;
}}];