UIView: Let subviews receive touches, but not main view?

Viewed 3859

I've got several cells containing views in this structure:

  • Main view
  • backview
  • frontview

The cells partly overlap. This means that the main view of cell A will partly cover the frontview of cell B. Like this:

  • B main view
  • B backview
  • B frontview
    • A main view
    • A backview
    • A frontview

I want to intercept touches on frontviews and backviews, but I want main views to ignore them.

(I've tried disabling user interaction on main views, but that also disables front and back views).

Any tips?

1 Answers
Related