我正在创建示例hello world应用程序.代码如下.我怎么能删除
c [cell setText:@"Hello World"]的警告; 在不推荐使用的代码中.
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
[cell setText:@"Hello World"];
Run Code Online (Sandbox Code Playgroud)
Gya*_*ani 24
设置单元格标签文本
cell.textLabel.text = @"Hello World";
Run Code Online (Sandbox Code Playgroud)
和细节标签文本
cell.detailTextLabel.text = @"yourText";
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
16363 次 |
| 最近记录: |