Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Transferring the events to parent view (Titanium Studio, IPhone)

I am new to mobile development with Titanium Studio. I would like to know if it is possible to transfer an event to a view's parent view.

For example, say that I have a imageview namely imgVw added on top of a view namely parentView and I want to pass the touch event of imgVw to parentView. Please let me know if it is possible. Thanks in advance.

like image 676
senthil Avatar asked Oct 18 '12 07:10

senthil


1 Answers

Please try this:

A simple technique is to set the touchEnabled property of child view to false, which passes the event to the parent view. Hope it helps.

like image 76
suresh.g Avatar answered Sep 30 '22 22:09

suresh.g