views:

23

answers:

1
[checkButton1 addTarget:self action:@selector(selectorClicked:) forControlEvents: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

A: 

Have you initialize the button object?

Reena