قالب وردپرس درنا توس
Home / IOS Development / ios – How do I change names programmatically to distinguish UIViews from each other in Xcode visual troubleshooting?

ios – How do I change names programmatically to distinguish UIViews from each other in Xcode visual troubleshooting?



You can simply name the items in Document Outline

Select the view you want to name and press Enter:

  enter image description here

This name will then be editable. Note: This applies to only for use in IB / Storyboard – the names are not reflected during runtime (so you cannot refer to the display with name in code).


Source link