ocカスタムUItableViewセル

379 ワード

1空のempty.xibを作成しfreedomフリーレイアウトに設定
2 UItabelViewCellに継承されたクラスを作成し、empty.xibにバインドします(必須)
3 NSBundleを使用して次のコードをロードします.
   NSBundle * bundle=[NSBundle mainBundle];
   cell=(DIYCellTableViewCell *)[[bundle loadNibNamed:@"order" owner:self options:nil] lastObject];

この時のcellはUIVEと変わらず操作できます
参考資料 http://southking.iteye.com/blog/1502398