gpt4 book ai didi

iphone - initWithFrame :reuseIdentifier? 的替代方法是什么

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:04:58 25 4
gpt4 key购买 nike

你能帮我解决这个问题吗,因为方法 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com