Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcode storyboard won't accept changes

My storyboard seems locked. I have added new labels and imageviews to two different scenes, but at runtime the labels and pictures don't show. (All original items are displayed correctly.) I have tried Clean, Build, and Building for Running, Testing, and Profiling. I have copied the entire project to another Mac. It runs the program, accepts changes in the code, but this Mac, too, will not allow changes in the storyboard. (No added items, no changing the position of original items.) It's as if the storyboard is locked for editing.

I've searched for info on storyboard locking but can't find anything that seems to apply to me (i.e. I'm not one of a team working on the same program.)

I'd appreciate any ideas.

(Xcode 4.2 on the 2nd Mac, Xcode 4.3.2 on the original where the problem first arose.)

like image 602
Rob Smythe Avatar asked Jun 12 '12 14:06

Rob Smythe


People also ask

How do I unlock storyboard?

The Thumbnail view displays a locked icon in the header. Select Storyboard > Unlock Sequence, Scene and Panel Names.

How do I add a storyboard to an existing Xcode project?

Add new storyboard to the project by File->New->File... ->Userinterface->storyboard. Go to project summary and select MainStoryboard and select the storyboard name you just created.


2 Answers

I had the same issue, and realized that I was playing with the Localization Locking setting, which is located on the right hand side menu under Interface Builder Documents.

Localization Locking

Make sure that the selected setting is Nothing if you want to be able to make changes to your storyboard.

Hope this helps.

like image 197
agarcian Avatar answered Sep 28 '22 12:09

agarcian


I had the same issue in xocde6 and I got the answer on apple developer site

  1. In project navigator, select a .storyboard or .xib file.

  2. Choose a locking level from the Editor > Localization Locking menu. Refer to Locking levels for a description of the locking choices in this menu.

To unlock all the views in the file, choose Reset Locking Controls.

For example, to prevent any edits to the nib file that would impact localized strings files, choose Reset Locking Controls followed by Localizable Properties.

like image 34
gunblues Avatar answered Sep 28 '22 10:09

gunblues