tags:

views:

13

answers:

1

Hi,

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"];
+1  A: 

set cell label text

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

and detail label text

cell.detailTextLabel.text = @"yourText";
Gyani
@Gyani: Thanks for this reply.
iSight