Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I want to change name of the view in the IB. Please see the screenshot

I want to rename View to View1. How can I do this?

enter image description here

like image 679
Voloda2 Avatar asked Jan 14 '12 08:01

Voloda2


People also ask

How do I rename a stack view?

Control-click the ContentView structure, choose Refactor > Rename, and rename the structure to MeetingView .

How do I change the view name in Swift?

Inside the class right-click on the class name of the controller. Now you'll be able to see REFACTOR option. Click on the refactor you can get RENAME option. Give whatever name that you want, then click on RENAME.


1 Answers

Not sure what you are planning to do. If you want to have this view renamed in IB objects inspector:

  1. Select the view
  2. open right panel
  3. go to the Identity Inspector(3rd icon)
  4. fill Identity->Label (with placeholder "Xcode Specific Label").

However, if you want to access the view from view controller(use it in code), you should read about IBOutlets.

like image 190
Michał Zygar Avatar answered Sep 28 '22 19:09

Michał Zygar