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

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -