Swift webView dissapears from screen - swift

When I run my app on simulator, everything is shown perfect, both webView and view below it.
But after a second webView disappears from screen. I don't know if I make a mistake with constraints.Here is how my screen should look like :
Consraints:
And this is simulator 1 second after it has been loaded:

Related

Running Xcode Project on iPhone - Black Screen?

When I run my project on the iOS Simulator or on my iPhone, half of one particular view controller becomes a black screen. None of the functionality for that view controller is there, and half of the screen is black. However, the "Back" button at the top of the View Controller is still there, and it works. This View Controller should have a Table View and a UILabel. However, neither of those appear. Any ideas why this might be the case?
Thanks.

Status Item NSPopover won't display if app is fullscreened

I'm having trouble getting a NSPopover for my app to display when an app is full screened. It doesn't matter if the app is mine or another.
Image below is the popover displaying out of fullscreen, fullscreen it just flickers with nothing showing.

iPhone app not running on simulator xcode

So I'm trying to run a new tabbed application in the iPhone simulator, but I keep getting a black screen after my app loading screen.
I've tried Reset Content and Settings and I've made sure that my storyboard is the main interface.
My app also doesn't appear in the iPhone simulator app pages
Black screen appear only when, you do not set any initial launching screen in the application, and thus it show black window screen. In your storyboard select "Tab Bar controller Scene" and check its attribute inspector and check if "is Initial View controller" field is selected or not.
Make sure you set your initial view correctly in Storyboard

Resume app from background restarts the entire APP?

As described, it looks fine if you background the app and click the app icon again.
BUT if you double click home button and click the app icon from background application icons, your app restarted completely.
I have a menu view, and a game view. Where the menu view has a slider effect for 10sec, and then a start button for the game. and when I click start game, obi it does storyboard segue (model style) to the game view and start the game.
I have code for applicationWillResignActive, and it works fine, as soon as you reactive the game through normal app icon, but from the background app list queue.
Anyone has experienced this issue before?
Solution is to not putting any slideshow loading in ViewWillAppear but in ViewWillLoad

Autorotation And resizing

M developing an application which starts with a login page.
After loggin the user will see a tableview.Selecting a row he will be directed to a web view showing a HTML content.
Till here everything went fine.Now i want to see the webview in a landscape
mode.I have dismissed the login view.The project template is view based.
Okay one more thing the table view is on the root view controller,after dismissing the login page when I rotate the simulator the webview rotates but it does not resizes.
Upper half of the screen is the webview but the lower half(in landscape mode) is the login page.
How can get rid of this ?
ThankYou All .
You need to make sure the autoresizingMask is set properly for things that are not resizing. This is easiest in IB where you can set a view to resize both vertically and horizontally.