The documentation for exclusionPaths describes it as: An array of UIBezierPath objects representing the exclusion paths inside the receiver bounding rectangle. Default value: nil. An array of UIBezierPath objects representing the exclusion paths inside the receiver bounding rectangle. Default value: nil.
You use the frame another view to set this property, which uses a different coordinate system. Write down the values ββof each of these properties ( frame and bounds your label and frame your button) to find out how the values ββrelate and how to translate them from one to another.
Related documentation: Conversion between view coordinate systems
source share