阅读背景:

关于tableView:cellForRowAtIndexPath的解释

来源:互联网 


- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CMainCell = @"CMainCell"; // 0 UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CMainCell]; // 1 if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier: CMainCell] autorelease]; // 2 } // Config your cell cell.textlabel.text = @"XXX"; // 3 return cell; }- (UITableViewCell *)tableView:(UITableView




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: