Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITableViewCell setting text

Tags:

iphone

I am creating sample hello world application. The code is below. How can i removed the

warning at c[cell setText:@"Hello World"]; in the code below as it deprecated.

UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];

[cell setText:@"Hello World"];
like image 267
boom Avatar asked Oct 20 '10 05:10

boom


1 Answers

set cell label text

cell.textLabel.text = @"Hello World";

and detail label text

cell.detailTextLabel.text = @"yourText";
like image 164
Gyani Avatar answered Oct 11 '22 11:10

Gyani