バージョンアップの'initWithFrame:reuseIdentifiier:'is deprecated

375 ワード

iOS 3.0以降のバージョンでは、このような構文は使用されません.解決方法は次のとおりです.
次のようになります.
cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];  

次のように変更
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];