converting button into integer
<p>I have two buttons, and i had taken one button tag and want to compare with the another button like this,</p>

<pre><code>if ([sender tag] != ((UIButton*)[self.view viewWithTag:[self number]]))
</code></pre>

<p>then the warning is comparison between NSInteger and pointer type is not possible.</p>

<p>so,please help me how to convert pointer to integer,any help would be appreciated.</p>

<p>Thanks in advance.</p>
