开发者

"setText: is deprecated" warning

开发者 https://www.devze.com 2023-03-11 12:53 出处:网络
When I run my app, a warning pops up that says \"\'setText:\' is deprecated.how can i rewrite this line of code to 开发者_C百科get rid of the error?

When I run my app, a warning pops up that says "'setText:' is deprecated.how can i rewrite this line of code to 开发者_C百科get rid of the error?

cell.text = [moreArray objectAtIndex:row];

Thanks


Use this:

cell.textLabel.text = [moreArray objectAtIndex:row];
0

精彩评论

暂无评论...
验证码 换一张
取 消