// // TestViewController.m // TestUITextView // // Created by xxx on 2022/6/8. // #import "TestViewController.h" #import "TestTableViewCell.h" #import "TestModel.h" @interface TestViewController () @property (weak, nonatomic) IBOutlet UITableView *tableView; @property (nonatomic , strong) NSMutableArray *datas; @end @implementation TestViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. [self.tableView registerClass:[TestTableViewCell class] forCellReuseIdentifier:@"TestTableViewCell"]; [self loadData]; } - (void)loadData { self.datas = [[NSMutableArray alloc] init]; NSString *test = @"testabcdefg"; for (NSInteger i = 0; i < 100; i++) { NSMutableString *text = [[NSMutableString alloc] init]; [text appendFormat:@"%@ ",@(i)]; NSInteger k = i; if (k > 10) k = k%10; for (NSInteger j = 0;j