IOS Is there a way to show Autolayout restrictions during debugging?

I want to see the NSLayoutConstraints that I set between the individual UILabels during debugging. Is it possible?

+4
source share
1 answer

In Xcode 6, there is a way to show debugging restrictions.

  • Run the application either on the simulator or on the device.
  • Select the "Debug View Hierarchy" that appears between "Log Out" and "Simulate Location" enter image description here

  • Select the control you want to view,

enter image description here

  1. Select Show Restrictions

enter image description here

Result:

enter image description here

+8
source

Source: https://habr.com/ru/post/1541088/


All Articles