我正在尝试将两个对象或“classNames”显示到PFQueryTableViewController
. 到目前为止,这是我的代码,只有一个对象。我似乎无法添加多个对象。
-(id)initWithCoder:(NSCoder *)aDecoder {
self = [super initWithCoder:aDecoder];
if (self) {
// Customize the table
// The className to query on
self.className = @"Funny";
//self.className = @"Story";
// The key of the PFObject to display in the label of the default cell style
self.textKey = @"title";
// Whether the built-in pull-to-refresh is enabled
self.pullToRefreshEnabled = YES;
// Whether the built-in pagination is enabled
self.paginationEnabled = YES;
// The number of objects to show per page
self.objectsPerPage = 100;
}
return self;
}