Recompiling storyBoard makes uitableview black - ios

I am using a uitableview that I am filling programmatically implementing in the same *.m file UIViewController . It is working fine, but sometimes, when I recompile the storyBoard it is really strange because it shows the table completly black. I am using Interface builder to define the table and objective c to fill the table code.
When it is working fine if I exit an run agin from the phone the app keeps woking fine the problem appears if I make a change in the stroy board. It dosen´t matter if I am changing another view, sometimes it shows a black screen. I need to clean the project and build again.
I am using Xcode Version 6.3.2 (6D2105).
I don´t see any error in the log screen and I don´t know if it is possible to see the story board compilation log.
What do you think? Thank you for your time.

Related

GLKView in IB will cause crash when app is run without Xcode

I have an app that displays a ViewController at some point, which includes a GLKView. All defined within a storyboard.
It works just fine, that is, unless you run the app from the phone itself, not launched from within Xcode. Upon presentation of the ViewController and therefore the GLKView, the app instantly crashes.
It doesn't matter if the Installed checkbox is ticked or unticked for the GLKView. Only when I delete it from the storyboard altogether, it won't crash.
Any ideas?
I don't know why these things happen but I would consider them a bug. A similar situation happens when adding a WKWebView directly from storyboard. For both the solution is pretty simple: All you need to do is import the module for it. So in your case in your view controller add:
import GLKit
It seems otherwise the framework is not loaded or something.
With ObjectiveC the problem seems to go a level deeper. It seems that the module must manually be imported. Go to your project settings. Select your target. Select "General". Scroll down to bottom and find "Linked Frameworks and Libraries". Below it find a "+" button and search for "GLKit.framework" and add it. This should fix the issue.

UINavigationBAr Title as an Image, used to work, doesn't display anymore in XCode9

I'm having a small annoying issue, I'm using storyboards on this app since it's creation, I want to make an update to it and something that used to work before doesn't anymore
See I was using an image as a UINavigationBar Title, Dragged it to the storyboard and it worked almost automatically,
Now well the image doesn't display anymore... Here's a screen :
As you Can see, the UIImageView is there, but nothing shows up. and when I run the app, still nothing...
I'd like to solve it trought Storyboards, but my knowledge is limited
thanks

Xamarin.Forms labels not working anymore, on iOS

I am making a Xamarin.Forms project, and I am in the end of my app, but something really strange have happened. My app starts up with no labels (!?), meaning they are invisible or not created at all. Everything else seems to be working, until I press a button that is supposed to change the label - when I do this, the app freezes. I get no exception in Visual Studio, though.
One problem is that my breakpoints in PLC code never hits, only those I place in the iOS code. However, the buttons not related to changing a label works, so I know the PLC code have been ran. If I let the app run for a little while, and then press the pause-button in VS debugging to see where in the code I am, it stops at
UIApplication.Main(args, null, "AppDelegate");
.. in Main.cs. I dont know if this is correct or not, when I run on Android, I get a Break Mode - No code is currently running.
I have been trying for hours to debug, reinstall, restart, clean and rebuild, but nothing seems to help. My code works perfectly in Android, and it worked in iOS 1 week ago. Anyone have any ideas what is going on, or what I can do to debug some more? Or must I make a new project and try start over?
Edit: I have also tried different starting pages, and all are the same: all views loads except those with text in them. I have a page with an Editor in it, and I can write in it, but no text is appearing inside of it. Only button have visible text. I do not use a custom font for my labels, I have not specified anything.
Waking up fresh in the morning, I found my issue in 15 minutes..
After altering my Google search to TextView iOS instead of Label Xamarin, I found much more answers. Thanks to this question and answer.
Basically, changing anything on the labels in the constructor of the page (even after InitializeComponent()), will mess up the view. I moved my code outside of the constructor (in the protected override void OnAppearing() method), and now it is working again.
The freeze part was not related - this was my custom menu that covered my screen with an invisible layout eating up all clicking events. A bit confusing, none of these issues are present in Android, but there you go.

XCode 8 : Weird Storyboard issue that rolls back changes each time after it is saved

I am facing a really weird storyboard issue. I am using Version 8.0 (8A218a) . For one of my projects, I have two storyboard files, one for iPhone and one for iPad.
Both storyboards are behaving insanely: I open a storyboard file and make changes to a ViewController's view, then I save. I run the application and every thing is OK.
I switch to another file then open the stoyboard file again, and it loads back the old view! (changes subviews locations, to the left after I center them, the same subviews every time).
To track down the issue :
1- I made a copy of the project, cleaned, deleted derived data. Did not solve.
2- I thought about Source Control, so I disabled Git. Did not solve.
3- Unless it is a common bug, I am out of options.
The problem is that it does this in each of my 2 storyboard files. And when I open one and fix it them switch back to the second, I find it changed!
Did anyone face this weird issue with storyboard?
Any explanation and/or suggestion to solve it please?

Using GitHub with XCode 6.2 causes Storyboard UI Elements to Disappear

My partner created a project in XCode and committed it to GitHub. No new changes were made. When either of us tries to bring down the project on our computers, the Storyboard appears to be missing every single UI element (UITextField, UIButton, UILabel, and UITextView). The View Controllers show up, but all of them are empty / blank. In the list view, the elements are there but are grayed out. The project still runs perfectly. If I try to open the Storyboard with an external editor, it still exists as an XML file. Apparently, the elements are still there but they simply fail to show up when the Storyboard is displayed. We are both using the latest XCode, Version 6.2 (6C131e). My partner just upgraded to the latest version of Yosemite a couple of days ago, and I am running OSX 10.9.5. The code is in Swift.
It is because your Size Class enabled. And for size class enabled, you can valid some of the elements and constraint at certain size. If you change the size at the bottom, they will be shown(not grayed out)
After the problem happened again, I fixed it the same way as above with the Size Class set to Compact/Any, and this time did a force commit on ALL files even though Git didn't seem to think they needed to be uploaded. That time when I checked the project out again, I could see the UIElements in the Compact/Any without having to change it back to Compact/Any again because it was already showing that way.

Resources