I have a very simple question. When I read iPad programming guide, there are a lot of similar codes as below:
I want to know if I can use code as below:
Code:
NSString *str = [[NSString alloc] initWithFormat:@"Row is %d", row];
cell.textLabel.text = str;
[str release];
I want to know if I can use code as below:
Code:
cell.textLabel.text = [[NSString alloc] initWithFormat:@"Row is %d", row]