aqgridview

NSString In AQGridViewCell

有些话、适合烂在心里 提交于 2020-01-06 12:40:50
问题 I have an AQGridView set up to display the files in the documents directory along with 4 other documents that are predefined and loaded into the table at startup. I need to know how I can set the cell to hold the URL of the document (yes, even the predefined ones! They are all just NSStrings after all.) so it can be called later with - (void)gridView:(AQGridView *)gridView didSelectItemAtIndex:(NSUInteger)index { NSString *fileURL = [self._icons objectAtIndex:index]; // do stuff } and loaded

Load a AQGridViewCell from XIB (not working)

徘徊边缘 提交于 2019-12-10 10:13:21
问题 I am using AQGridView class and I am trying to load a cell from an XIB . I have setup the XIB like a Custom Cell for a UITableView , but when I attempt to load the cell, it is simply blank. I was wondering if there was an easier way to get the XIB to load. AQGridViewCell need to load the cell from an xib - (AQGridViewCell *) gridView: (AQGridView *) gridView cellForItemAtIndex: (NSUInteger) index { static NSString * CellIdentifier = @"cellID"; gridCell * cell = (gridCell *)[gridView

Load a AQGridViewCell from XIB (not working)

空扰寡人 提交于 2019-12-05 20:30:19
I am using AQGridView class and I am trying to load a cell from an XIB . I have setup the XIB like a Custom Cell for a UITableView , but when I attempt to load the cell, it is simply blank. I was wondering if there was an easier way to get the XIB to load. AQGridViewCell need to load the cell from an xib - (AQGridViewCell *) gridView: (AQGridView *) gridView cellForItemAtIndex: (NSUInteger) index { static NSString * CellIdentifier = @"cellID"; gridCell * cell = (gridCell *)[gridView dequeueReusableCellWithIdentifier: CellIdentifier]; if ( cell == nil ){ gridCell = [[gridViewCell alloc]