How to create a custom UITableViewCell with nib in Xcode 4?

In Xcode 3, I could choose to create a thread when subclassing a table cell. In Xcode 4, it only makes h / m files.

How to subclass with xib file?

Edit: see screenshots below:

New file

enter image description here

EDIT: Also, is there a way to create a UITableViewCell nib automatically, along with h and m files, all pre-prepared and ready for editing?

+5
source share
3 answers

This blog post describes how to add it manually.

in iOS4 +, line

NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"CustomCell" owner:self options:nil];

UINib.
, .

+3
+3

, .h/.m, (nib).

  1. , , " " .
  2. , UITableViewCell .
  3. .
+1

All Articles