当前位置: 代码迷 >> Iphone >> iPhone tip 一
  详细解决方案

iPhone tip 一

热度:46   发布时间:2016-04-25 06:22:13.0
iPhone tip 1

在一些关于tableView的程序中必须要写的数据源方法cellForRowAtIndexPath中,设置缓冲Cell时,用以前的方法会有警告,错误如下:

warning: ’setText:’ is deprecated (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITableViewCell.h:199)
?这时只需要把cell.text改为cell.textLabel.text即可
//*********************************************************

  相关解决方案