クラスを使用しており、 XIBAQGridView
からセルをロードしようとしています。のカスタム セルのようにXIBをセットアップしましたが、セルを読み込もうとすると空白になります。XIBをロードする簡単な方法があるかどうか疑問に思っていました。UITableView
AQGridViewCellは xibからセルをロードする必要があります
- (AQGridViewCell *) gridView: (AQGridView *) gridView cellForItemAtIndex: (NSUInteger) index
{
static NSString * CellIdentifier = @"cellID";
gridCell * cell = (gridCell *)[gridView dequeueReusableCellWithIdentifier: CellIdentifier];
if ( cell == nil ){
gridCell = [[gridViewCell alloc] initWithFrame: CGRectMake(0,0,_gridView.frame.size.width/2-4,
_gridView.frame.size.height/2-8)
reuseIdentifier:CellIdentifier];
cell = gridCell;
self.gridCell = nil;
}
cell.title = @"Test Grid Item";
cell.date = @"Apr. 7, 2011";
return ( cell );
}