Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Design view disappeared from Interface Builder

All of a sudden, the visual design window disappeared from my Interface Builder. It is a regular UIView, has some UIImageView, UILabel, and UIButtons on it. When I open IB, I can see the document window (with File's Owner, First Responder and View in it), Library and Inspector, but the visual design window disappeared. Double click on "View" in the document window doesn't do anything. If I go to List mode, I can see all the components on the view, but just can no longer find the visual design window. All other XIB can open just fine, only this XIB lost its design window.

First I thought maybe it was hidden somewhere on the screen. Tried all kinds of things, even rebooting the computer, but nothing helped.

Can anyone help? Thanks in advance! By the way, I'm running SDK 3.2 Beta 3.

like image 207
skywalker168 Avatar asked Mar 19 '10 01:03

skywalker168


2 Answers

Does it show up in Exposé? Does the inspector show its properties when you double click on the view? I’m just wondering if the view’s editor window has somehow been moved offscreen.

Here’s an idea. XIB files are just XML. You should be able to open it in a text editor and change the window’s location. Search for the string “>{{”, which should match against encoded NSRects. See if you can find a rect with an origin that would put it offscreen.

like image 153
Todd Yandell Avatar answered Oct 28 '22 15:10

Todd Yandell


For whatever reason what worked for me was: double click the "View" icon, press CMD-w, double-click "View" again.

like image 41
jberryman Avatar answered Oct 28 '22 17:10

jberryman