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
Post a Comment