Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Xcode4, the new interface builder says "no selection"

I am using the xcode 4.02 for iPhone programming. In the new interface builder, when I click a button (or any other GUI-element) and go to the "attributes inspector" it says "no selection". For a while I thought I could solve the problem by saving the nib-file, but it does not always work.

How can I solve this problem?

like image 454
ragnarius Avatar asked Jun 30 '11 20:06

ragnarius


2 Answers

There seems to be a bug in Attributes Inspector in Xcode 4. When this happens to me I usually do this:

  • Switch to another (non IB) file in the current tab
  • Launch a new Tab (cmd T)
  • Open the original IB file in this new tab

The Attributes Inspector will magically show in the new tab.

like image 50
NSExplorer Avatar answered Nov 14 '22 04:11

NSExplorer


I just had to close the assistant editor and the debug area and then it magically showed up. If you don't have the assistant editor open then all you need to do is open it, then close it again. That should fix it too.

If you don't know what the assistant editor is I have highlighted it in red:

Assistant editor in red

Xcode 7.2

like image 24
Daniel Galasko Avatar answered Nov 14 '22 04:11

Daniel Galasko