iphone - how to find out labels which are detected using touch or gesture in ios.? -


i developing college project on game in iphone based on finding words in grid view of labels.. have find out labels(actually alphabets) detected while draging finger. can me know controls can use find appropriate labels detected while dragging..

thanks in advance..

you can label using this.

note have set userinteractionenabled = yes uilabel

- (void)touchesbegan:(nsset *)touches withevent:(uievent *)event {     uitouch *touch = [[event alltouches] anyobject];      if ([touch.view iskindofclass:[uilabel class]])     {         uilabel *label=(uilabel*)touch.view;         nslog(@"%@",label.text);     } } 

Comments