草庐IT

AQGridViewCell

全部标签

objective-c - AQGridViewCell透明背景

我在自定义AQGridViewCell时遇到问题。我想让整个单元格具有透明背景,但initWithFrame:reuseIdentifier内部的以下内容无法完成这项工作:self.backgroundView.backgroundColor=[UIColorclearColor];self.contentView.backgroundColor=[UIColorclearColor];self.backgroundColor=[UIColorclearColor];self.backgroundView.opaque=NO;self.contentView.opaque=NO;sel

ios - 从 XIB 加载 AQGridViewCell(不工作)

我正在使用AQGridView类,我正在尝试从XIB加载一个单元格。我已将XIB设置为UITableView的自定义单元格,但当我尝试加载单元格时,它只是空白。我想知道是否有更简单的方法来加载XIB。AQGridViewCell需要从xib加载单元格-(AQGridViewCell*)gridView:(AQGridView*)gridViewcellForItemAtIndex:(NSUInteger)index{staticNSString*CellIdentifier=@"cellID";gridCell*cell=(gridCell*)[gridViewdequeueReusa