how to check condition on check box click?
<p>I am trying to check the condition of checkboxes.For making checkbox i use button.I changed there sizes and provide image as checked or unchecked on their click method.Now i have two checkboxes.Now i am trying to store array value on the bases of checkbox clicked.I mean that when i click check box the specific value of the array store in the string and if i uncheck then the value of string set to null.
For that i did:</p>

<pre><code>-(void) checkBoxIsAcitiveClicked
{
    NSLog(@"check box button clicked");
    if( [UIImage imageNamed:@"checkbox_ticked.png"])
    {
        isActiveStr=[arrayPickerData objectAtIndex:17];
        NSLog(@" is active value is %@ is fetched succesfuly",isActiveStr);
        [CommonVar setIsActiveStrData:isActiveStr];
        NSLog(@" is active value send to cmmon class %@ sent succesfuly",isActiveStr);
    }
    else
    {
        NSLog(@"no vlaue send");
        isActiveStr=nil;
        [CommonVar setIsActiveStrData:isActiveStr];
        NSLog(@" is active value send to cmmon class %@ sent succesfuly",isActiveStr);
    }
}
</code></pre>

<p>1)CommonVar is my common class
2)setIsActiveStrData is my class method in commonvar class
3)isActiveStr is my NSMutableString.
4)arrayPickerData is my NSMutableArray
Now i dont know how to check the condition that button image is checked.png or unchecked.png
Please help me
Thank You</p>
