In Xcode 3, I could elect to make a nib when creating a table view cell subclass. In Xcode 4, it only makes the h / m files.
How do I make the subclass with a xib file?
Edit: see screen shots below:
EDIT: Additionally, is there any way to create the UITableViewCell nib automatically, along with the h and m files, all pre-wired and ready to edit?
This blog post describes, how to add it manually.
in iOS4+, the line
NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@”CustomCell” owner:self options:nil];
can be replaced by a more efficient nib handling via UINib
.
see this blog post how to do it, and how to stay backwards compatible.
As I understood you already have .h/.m files and you are missing the view (nib).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With