【发布时间】:2009-06-27 14:52:45
【问题描述】:
我刚刚安装了iPhone SDK 3.0,发现UITableViewCell的text属性已经不用了,应该改用textLabel.text。这是否意味着我必须知道当前的系统版本并调用相应的方法?像这样。
UITableViewCell *cell = ...;
if ([[[UIDevice currentDevice] systemVersion] isEqualToString:@"3.0"]) {
cell.textLabel.text = @"...";
} else {
cell.text = @"...";
}
如果是这样,那会很烦人。
【问题讨论】:
标签: iphone iphone-sdk-3.0 uitableview