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 -

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

PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea -