Search code examples
iphoneobjective-cuikitiosmulti-touch

Preventing multiple buttons from being touched at the same time


In iOS is there anyway to prevent a UIView containing multiple buttons (siblings) from being simultaneously from being touched? For instance, two non-overlapping buttons that are side by side can be tapped at the same time with two touches.


Solution

  • Set UIView.exclusiveTouch.