我試圖將兩個對象或「classNames」顯示爲PFQueryTableViewController
。這是我的代碼到目前爲止只有一個對象。我似乎無法添加多個對象。PFQueryTableViewController中的多個對象 - Parse.com
-(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;
}
我會在哪裏做呢?在框架工作(PFQueryTableViewController.h)?你有更好的方法,而不是initWithCoder?謝謝。 – user2649903