将事件传输到父视图(Titanium Studio,IPhone)

sen*_*hil 6 iphone events transfer ios titanium-mobile

我是Titanium Studio的移动开发新手.我想知道是否可以将事件传输到视图的父视图.

例如,假设我有一个imageview即imgVw添加在视图的顶部,即parentView,我想将imgVw的触摸事件传递给parentView.如果可能,请告诉我.提前致谢.

sur*_*h.g 8

请试试这个:

一种简单的技术是将子视图的touchEnabled属性设置为false,将事件传递给父视图.希望能帮助到你.