Search code examples
iphoneioseventstitanium-mobiletransfer

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.


Solution

  • 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.