Having issues with auto layout showing up different than preview - ios

I'm trying to follow the tutorial on Apples Swift Tutorial
I've followed the UI layout but for some reason, when I hit play and the simulator pops up, my simulator shows up different than my preview. Any suggestions?

I feel this question may help somebody in the future so I won't bother deleting it.
Through my own stupidity I ended up building the UI under the LaunchScreen.storyboard ViewController instead of the Main.storyboard ViewController. Simple fix -> Put things where it belongs!

Related

Xcode simulates App wrong

I don't know what I've done. Everything was working great until I started styling my app. So, I was working on my main storyboard and when I tried to simulate my App in the simulator. I saw my Icons flying around like crazy.
I am more familiar with coding so I'm sorry if this is a nooby question but I don't know how to describe my problem to Google, I really tried it but it turns out to be other problems.
I will hang on screenshots, one is from my storyboard and the other one is whats the simulator shows me.
View in main storyboard:
View in simulator:
From your description and images, it looks like you're using auto layout but haven't applied enough constraints to locate the images where you want them, or the constraints are just wrong. Take a close look at your storyboard to make sure that you don't have any warnings about missing constraints, and that the constraints do what you want them to do.

UINavigationBar with extra black bar in iPhone X

I have an old project in Objective-C which required to update to support iPhone X. Even after updating with the recommended update suggested by the xCode 9.1 I am getting an extra black bar within UINavigationBar.
I have tried to use Safe area layout but no effective result found. The problem still not solved. I have attached some screenshots to explain the issue. Please help me to get out of this issue. Thank you.
With the help and suggestion of Mr. Vinodh above in the comment, I tried to evaluate the screen bu debugging using the method explained in the link shared by Mr. Vinodh. The link he shared above is https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/debugging_with_xcode/chapters/special_debugging_workflows.html
By visiting the link and debugging through the method explained here I come to know that I am adding a black view in status bar programmatically.
The method explains the way to debug the view hierarchy. The hierarchical view of the Image attached above in my question is as

React Native iOS - Modal not showing on simulator

As the title says, the modal is not showing on iOS simulators and generated IPA files. But it works fine on Android simulators. Did i miss any code-specific to iOS? Stuck at this for a while.
Without any Code or any version number is hard to help you.
But I'm still gonna give you my 2 cents.
There have been a lot of issues with Modal in react versions from 0.40 to 0.44 at least.
It could have more issues but I don't know.
So trying to search the needle in the haystack.
(Pay attention that with the lack of info about the problem/ambient there isn't much anyone can do to help you).
1- If you have any alert or modal open, or recently closed before trying to open this modal, the modal won't show. To see if you have this issue, clean any modal and alert, and try to render your app with only this view.
2- It could be a problem with ScrollView
3- Did you tried to build a release file for ios and install on a device to see if still happens? issue here
4-I think I saw a few issue's there were about problems between modal and navigation systems. so i advise you to search there too.
5-It could be something else, I advise to do a deep search on react-native issues and try to see if someone else is experiencing this issue.
For more help please edit your question and put more info, and I will edit my answer, and if by any chance any of this options work, please put on the commentary which one work to give a forther explanation.

Can't find containerView Xcode 6.4

Today I tried to use a container view in Xcode and when I searched in the bar at the bottom of the Library menu, I could not find it. I have also searched through the entire list and can not find it.
Does anyone have any idea what might be occurring. I am using Xcode 6.4.
Any suggestions will be much appreciated.
It looks like the reason I can't find it is because I am using XIB's and not a storyboard (which is what I used in the past when I used a container view).
Thanks to the other answers which helped me come to this conclusion.
I am using Xcode V6.4 and searched by the name UIContainer/container in the object library section of utilities. and It is showing the container view.
You can find it in your storyboard. See image bellow.
This is definitely a bug that is still present in Xcode 7.3.1.
However, I kept playing with switching tabs and looking into other storyboards to see if I could make it find it from a different file. It turns out that after a navigating thru some of my storyboards and seeing the storyboard form the main editor (instead of doing it from the assistant editor) I was able to find it.
Hope this helps!
Oddly, there seems to be a bug in Xcode 6.4. Once I changed the tab in the lower right navigator and came back to the Objects tab, the search/filter worked again. I had the same exact problem in the same exact version of Xcode.
Like kriztho said, container view won't be listed in the object library when viewing storyboard from the assistant editor for some stupid reason. I'm using Xcode 9, and this is still an issue. Right when I switched storyboard to the standard editor (Cmd + return on Mac), the container view was listed once again in the object library.

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?

Resources