ios - Wrong type given when loading UITableViewCell subclass from a nib -
the following assertion failing:
nsstring *class = nsstringfromclass([rctreceiptoptionscell class]); rctreceiptoptionscell *cell = [[[nsbundle mainbundle] loadnibnamed:class owner:self options:nil] objectatindex:0]; nsassert([cell iskindofclass:[rctreceiptoptionscell class]], @"cell wrong class dummy");
i trying create uitableview cell subclass nib , has worked me in past. method returns uiview
in ios 6.1. ideas on how fix this?
make sure class of root object in nib set rctreceiptoptionscell
rather default value of uiview
.
Comments
Post a Comment