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

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -