UICollection with Checkbox
<p>Hi i am working with camera app , captured picture are shown in <code>thumbnail-view</code> using collection view ,i have used <code>checkbox</code> to select the particular picture,Example, i taken three picture , i just tapping on 1st and 2nd picture to select it will get selected ,then i am taking another two picture ,now the <code>checkbox</code> image moved to the latest picture ,i don't know why it happens ,
i have done this in collection view cell class , and i have created a <code>Boolean</code> property in same class it itself.</p>

<pre><code>- (IBAction)checkButton:(id)sender {

if(!checked)
{
    [self.checkBoxButton setImage:[UIImage imageNamed:@"Checkbox_checked.png"] forState:UIControlStateNormal];

    checked = YES;


}
else if (checked)
{
    [self.checkBoxButton setImage:[UIImage imageNamed:@"checkbox_unchecked.gif"] forState:UIControlStateNormal];
    checked = NO;

}}
</code></pre>

<p>please help me to do this , </p>