'initWithFrame:reuseIdentifier:' is deprecated

在iOS3.0之后的版本不再使用这样的语法,解决方法如下:
将:

cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];  

  修改为:

cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];  

参考:
http://forums.macrumors.com/archive/index.php/t-1239790.html 

posted @ 2013-01-28 19:06  ygm900  阅读(202)  评论(0编辑  收藏  举报