iPhone:How to find the control interaction under Touch?
<p>I have a UILabel control in a view. I want to detect touch event occurred when this label touched. I added the following code, which should work whenever touch happens on the view.</p>

<pre><code>- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
</code></pre>

<p>{</p>

<p>// This should be called only when the label is touched, not all the time..<br>
[ [UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.mywebsite.com"] ];</p>

<p>}</p>

<p>Whenever that particular label is touched my code should do the process further, not when the touch is happening anywhere in the view. How do i find out the particular label (or) any control is touched under touchesEnded function ? </p>

<p>Could someone guide me on this?</p>

<p>Thank you.</p>
