1

每当您固定一个对象时,该对象总是隐式或显式([object pin*]vs. [object pin*WithName:@"pin name"],其中 * 是可选的InBackground)与一个引脚名称相关联 -PFObjectPinName默认情况下或由用户提供的引脚名称。

查询时,类似地,您隐式或显式提供要查询的引脚名称。但是,我想知道本地存储的所有对象,而不必知道系统上的所有引脚名称。

我怎样才能做到这一点?

4

1 回答 1

0

我想查询任何引脚,只需使用fromLocalDatastore. 它的评论说:

/*!
 @abstract Change the source of this query to all pinned objects.

 @warning Requires Local Datastore to be enabled.

 @returns The same instance of `PFQuery` as the receiver. This allows method chaining.

 @see cachePolicy
 */
- (instancetype)fromLocalDatastore;
于 2015-05-14T10:24:22.597 回答