读书人

iPhone tip 一

发布时间: 2012-09-24 13:49:41 作者: rapoo

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即可//*********************************************************

读书人网 >Iphone

热点推荐