how can i compare the button image and image name in array
<p>hi i am new to iPhone.what i did is crating an array with image names like </p>

<pre><code>images = [NSMutableArray alloc] initWithObjets:@"image1.jpg",@"image2.jpg",@"image3.jpg",nil]
</code></pre>

<p>i am creating 3 buttons and displaying button images from images array randomly by using random().now i have to compare the images in the array with button image if they are equal then i have to do another funcion to compare the image in Nslog i am writing the code as 
<code>NSLog(@"image %@",button.imageView.image);</code> i get in console . can any one pls suggest any idea how can i caompare the array and button image.Thank u in advance.</p>
