Storyboard Locked? - ios

Hello and thank you for the help :)
I was working on xcode and everything was working fine.
I dont know what i did but suddenly the storyboard stopped working normaly.
What happens is every time i add a new ViewController or any item to the storyboard it freezes in the position where it was dropped i can add buttons and move the buttons in the view.. but i cant move the view itself on the storyboard.
The curious part is that now every project that i have even the new ones.. the same happens.. i dont know what i did and i tried eveyrthing i found on google to fix it.. but nothing worked. anyone has any idea of what it can be?
thank you very much,
Sérgio

Maybe there's some corrupted file in Xcode. Have you tried to delete and reinstall Xcode? Sometimes, that is a solution.
Good luck!

In addition to #ajpallares answer, did you also clean the cache?

Related

iOS Storyboard ViewController went Blank

I'm working on the code in a project when I suddenly notice the ViewController in Storyboards is greyed out with the name of the VC in the center.
Here's a screenshot..
I was only editing some code on the right and I'm not sure exactly when, but my eyes adjusted and noticed this VC completely greyed out in Storyboards.
I tried deleting Derived Data, cleaning, quitting Xcode, building again, etc.
Nothing seems to work... ANy help with this would be super appreciated. I'm also very new to programming in general.
Well it turns out if you ever run into this problem, it's because you're not paying close attention and haven't realized you've somehow magically deleted your entire view inside the ViewController.
I did this once before by hitting something randomly on my keyboard (don't know what it was) but that time I saw it happen and just hit "undo".
This time I was passed the point of simply hitting "undo" and had to add a view again and rebuild and reconnect all the components in the view. That was basically it. Problem solved...

XCode - can't make a connection from storyboard to code

When I ctrl-drag an object from the storyboard to code in the assistant editor I get this error:
I've googled the hell out of this problem and tried every suggestion that I could find. I restarted XCode, restarted my computer, updated XCode, deleted and re-added files, etc. and nothing is working. I saw suggestions to manually write the code and then drag from the circle in the gutter to the object I want to connect to in the storyboard. This would be a fine solution, but for some reason the outlet isn't showing up.
Normally the outlet would be to the left of the line number in the gutter
I am not sure what to do at this point except cry. If anyone has any suggestions or help to offer that would be greatly appreciated.

iOS UI elements are invisible

I work on a project for few days. All worked great until today. I've added few elements to view just like normal today. But when I launch app on device I can't see them. They are there: size classes works ok, everything is on right place. I can even touch UISegmentedControl and pick item on UIPickerView that makes the Picker View noise. But they are invisible - I can see only older elements.
I can't even tell where is the problem, because new elemts have THE SAME setting as olders. Methods like [_someElement setHidden:NO] does nothing.
Can you help me please?
Edit: they are visible in IB Preview
probably bug with cache, try to:
-delete all data from DerivedData folder
/Users/%user name%/Library/Developer/Xcode/DerivedData
-manually remove application from device/simulator
rebuild application
Thank you, I solved it after few hours, when I was focusing on another problem.
AVFoundatuon preview layer hide those elements. Simple solution is to bring them to the top as subviews.
Thank you.

Can't see anything on my on storyboard but the background

I am new to Swift programming and got some issues after i changed the app's name. When i go to Main.storyboard i couldn't see my buttons but the background and when i tried to run it it looked and worked totally fine.
Does anyone know what the problem is?

Done Button not working in FlipsideViewCOntroller

I'm updating my app form xib files to a storyboard. I'm also upgrading the app to iOS 7.
I have a two page app, like a Utility app. I can create e segue to flip to the second page. However when hitting the done button nothing happens. I've tried several things (the suggestions on SO too) but without result.
Ik started a new project (Utility) an compared the code for the segue and for dismissing the FlipsideViewController. In my project and the new one the code is the same.
I placed an NSLog call in the flipsideViewControllerDidFinish method but no effect.
I am out of ideas, please help.
While posting I got a (last) Idea. I had to check if the segue identifier was correct.
And it wasn't. So I corrected it and it works like a charm.
Thank you.

Resources