Voloda2
Voloda2

Reputation: 12617

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

Upvotes: 6

Views: 4249

Answers (3)

user3398985
user3398985

Reputation: 45

I think the operator wants to change the name in the outline. This can be done as described but it is no longer under Identity but Document.

Upvotes: 0

Michał Zygar
Michał Zygar

Reputation: 4092

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.

Upvotes: 14

Mike K
Mike K

Reputation: 2227

in the identity inspector, there's a section called "Identity". in that section is a textfield for "Label". changing that will change the name that appears in xcode. note that this is only something that has effect in xcode - it doesn't change anything about how the view is used in the app. is that what you want?

Upvotes: 2

Related Questions