I have a UIViewController that at some point produces a UITableView, and when it does, I just launch an instance of the TableView instance and add it to the view, but I'm not sure how to handle the cell de-increment to add to the View; I need a reuse id, but I'm not sure how to set it.
What should I do in this method?
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *cellIdentifier = @"wot";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier forIndexPath:indexPath];
return cell;
}
source
share