你能帮我解决这个问题吗,因为方法 initWithFrame:reuseIdentifier 已被弃用:
static NSString *CellIdentifier = @”Cell”;
CustomCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[CustomCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
}
提前致谢,
史蒂芬
最佳答案
您必须使用:initWithStyle:reuseIdentifier:
关于iphone - initWithFrame :reuseIdentifier? 的替代方法是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7327403/