I have two buttons of the same size (ie: Button1 and Button2). Button2 overlaps Button1 by 50% (see below).
If I click anywhere within Button2 then I receive an IBAction Click notification from Button2, as expected.
If I click anywhere within Button1 then I receive an IBAction Cick notification from Button1, as expected.
Issue
If Button2 is now disabled (ie: Button2.isEnabled = false) or user interaction set to false (ie: Button2.isUserInteractionEnabled = false) and I click on the left 50% of Button2 area (ie: the area which is overlapping Button1), then I will receive an IBAction Click notification from Button1
Questions
Why do I receive an IBAction Click notification from Button1 when clicking disabled Button2 ?
I would expect not to receive any IBAction Click notifications when clicking anywhere within the area of Button2
I think I can work around this issue in code, however, I was wondering whether this is normal handling and how others might resolve this behavior.