I use the following code in the cellForRowAtIndex method, but the tableview does not scroll?
static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView1 dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier]; } cell.textLabel.adjustsFontSizeToFitWidth = YES; cell.textLabel.text = [NSString stringWithFormat:@"...%@...", hit.neighboringText]; return cell;
user2330881
source share