iphone - which control touched -


in below code how can understand control touched?(imagine exist button1,label1,.. on view)

- (void)touchesbegan:(nsset *)touches withevent:(uievent *)event {     uitouch *touch = [touches anyobject];  } 

check view property on touch object. documentation:

the value of property view object in touch occurred.


Comments

Popular posts from this blog

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -