IOS atravesar toda la célula TableView

- (NSArray *) cellsForTableView: (UITableView *) tableView {

    secciones NSInteger = tableView.numberOfSections;

    NSMutableArray * células = [[NSMutableArray alloc] init];

    for (int sección = 0; sección <secciones; sección ++) {

        filas NSInteger = [tableView numberOfRowsInSection: sección];

        for (int fila = 0; fila <filas; fila ++) {

            NSIndexPath * indexPath = [NSIndexPath indexPathForRow: fila insection: sección];

            [Células addObject: [tableView cellForRowAtIndexPath: indexPath]];

        }

    }

    células retorno;

}

 

No hay ninguna prueba no puede ser multiplexado piscinas celular

Publicado 49 artículos originales · ganado elogios 7 · Vistas a 30000 +

Supongo que te gusta

Origin blog.csdn.net/qq_29680975/article/details/100985953
Recomendado
Clasificación