Note that there are some explanatory texts on larger screens.

plurals
  1. POButton in custom TableviewCell not accepting the action.when I tap on retry button it throws exc_bad_access signal .
    primarykey
    data
    text
    <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { if(indexPath.section == 0){ UITableViewCell* cell = nil; if (indexPath.row &lt; kTotalScreens) { if ([self.tableCellsPrecreated count]&gt;=kTotalScreens) { cell = [self.tableCellsPrecreated objectAtIndex:indexPath.row]; } } return cell; }else { UITableViewCell* cell = [tableView dequeueReusableCellWithIdentifier:cellIDForHome]; if (indexPath.row &lt; [_subActionArray count]) { if(cell == nil) { cell = [self getCellForCategoryActionForRow]; NSLog(@"************cell %d created",indexPath.row); } GridViewController *controller = [self getControllerForCategoryActionCellAtIndex:indexPath.row andCell:(TitleWithGridViewCell*)cell]; [self reloadDataForController:controller contentCategory:((CategoryAction *)[_subActionArray objectAtIndex:indexPath.row]).category cellView:(TitleWithGridViewCell*)cell]; } return cell; } } -(UITableViewCell*)getCellForCategoryActionForRow { TitleWithGridViewCell* cell = [[[NSBundle mainBundle]loadNibNamed:@"TitleWithGridViewCell" owner:self options:nil]objectAtIndex:0]; CGRect frameCell = cell.contentView.bounds; frameCell.size.height = [cell heightOfCellForSubCellofSize:CellSizeSmall viewClass:[EntityCellView class] numRows:1]; [cell setFrame:frameCell]; cell.delegate = self; cell.accessibilityLabel =[NSString stringWithFormat:@"Category Channels Grid"]; return cell; } -(GridViewController*)getControllerForCategoryActionCellAtIndex :(NSInteger)index andCell:(TitleWithGridViewCell*)cell { GridViewController* gridController = nil; CellViewFactory *channelCellFactory = [[CellViewFactory alloc] initWithWantedCellSize:CellSizeSmall cellViewClass:[EntityCellView class]]; ChannelsForCategoryDataFetcher *channelsForCategoryDataFetcher = [ChannelsForCategoryDataFetcher new]; PrefetchingDataSource *dataSource = [PrefetchingDataSource createWithDataFetcher:channelsForCategoryDataFetcher]; dataSource.sortBy = ProgramSortByRatingCount; dataSource.objectsPrPage = 6; if (cell) { gridController = [[GridViewController alloc] initWithGridView:[cell getGridView] gridCellFactory:channelCellFactory dataSource:dataSource]; gridController.delegate = self; } return gridController; } </code></pre> <p>Above code create one custom tableviewcell and the controller for that cell.Every cell contains a try again button an case of network failure.Table is showing all the data and cells absolutely fine.But on taping try again button in cell it shows exc_bad_access.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload