Throws uncaught exception while adding subview in a table row
[checkButton1 addTarget:self action:@selector(selectorClicked:) forContr开发者_开发知识库olEvents:UIControlEventTouchUpInside];
[cell.contentView addSubview:checkButton1];
[checkButton1 release];
Line 2 throws uncaught exception. Do you have any idea? If i comment line 2 it works fine but also doesn't add view into subview.
Thanks,
Amit Singh
Have you initialize the button object?
精彩评论