xcode 8.1 storyboard showing blue lines only

2019-02-21 13:34发布

问题:

I installed xcode 8.1 and the storyboard shows only blue lines, for all ui elements. If someone has figured it out.. let me know. I am unable to revert it to even Xcode 8.0

回答1:

Ok, So finally I too got the blue line problem in Xcode 8.1

Here is the screenshot

We can see something like An internal error occurred. Editing functionality may be limited and a Report a Bug button on right side.

Don't know the reason why it happened. But I just quit Xcode and Simulator and again restarted it. That fixed and I got the UI elements back.



回答2:

Don't worry revert back to old xcode

To remove the blue lines,

In Xcode, Go to Editor > Canvas > Show Bounds Rectangles

This will hide the blue lines



回答3:

Seeing the blue rectangles is actually a feature of Xcode editor. You can turn this On/Off by going to Editor menu->Canvas->Show Bounds Rectangles

But yes, seeing just the blue boxes seems to be a bug. Usually happens if you have been switching between various versions of Xcode frequently. I guess quitting and reopening Xcode shall resolve this temporary issue.



回答4:

This has happened to me on several occasions. For me it almost always occurred after dragging a UILabel from a UITableView cell into a different view.

I was able to fix the problem by deleting the ViewController in the storyboard that I did the dragging to/from, closing the app, and reopening the project.