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
Related
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.
I have an app that has been out for some time. I recently updated it to Swift. I have one user who is seeing different results than I am on either the simulator or on two different devices. The view presented is for video playing and on my devices and the simulator the navigation bar is present and the control bar for the video, unless the screen is tapped to dismiss it. On my user's iPhone 6 there is no navigation and no control bar.
I have not called for the navigation bar to be hidden on that view.
Haas anyone any ideas on what is happening?
I recently copied everything in my iPhone storyboard over to an iPad storyboard and changed nothing. It runs perfectly on the iPhone, loading WelcomeViewController as the initial scene.
However, when I run it on the iPad, the program crashes because it tries to load MainViewController as the initial scene.
I checked on Interface Builder, and the initial scene is set to view controller WelcomeViewController. I went in the debugger and put a breakpoint in the ViewDidLoad method of WelcomeViewController, and the iPad never hits that breakpoint but the iPhone does.
This is the Identity Inspector for the view controller of my initial scene.
This is the Attributes Inspector for the view controller of my initial scene (same as above).
Why does the iPad insist on trying to load ViewController as the initial view controller?
Thanks
EDIT: When I go to Targets > iPad Deployment Info, and set the main storyboard to the MainStoryboard_iPhone instead of MainStoryboard_iPad everything works. For some reason this MainStoryboard_iPad, a literal clone of the iPhone storyboard, doesn't.
Make sure your iPad view has initial controller set to WelcomeViewController in the storyboard. It is represented by an arrow as given below.
Next make sure your iPad Deployment section in target refers to your iPad storyboard.
When a user clicks a button, I want a full screen iAd to appear, before the user can continue.
I can create the popup view, but how do I fill the whole view with an iAd? (e.g. like its done in wordfeud)
ADInterstitialAd (or full screen iAd) is only available for the iPad. You can't use it on the iPhone.
From iAd Programming Guide:
Full-Screen Advertisements are Only Available on iPad
Have a look at that guide to see how to implement full-screen iAds on the iPad.
Use the ADInterstitialAd class. You can present it from another view controller (e.g. your main game board’s) with -presentFromViewController:, or within an existing view with -presentInView:.
I've got an iPad app that I've been developing and testing against iOS 4.2. When I started testing on iOS 5.0, a lot of things have started working strangely.
The app starts up with a UINavigationController housing a home view screen, where the user can choose from some options before loading up the rest of the app. When the user selects the launch button, a new UIViewController is set up with the given options and then I swap the root view controller inside the navigation controller using setViewControllers:animated:
This view has a nib template that loads and then proceeds to set up other views built both programmatically and loaded from other nib subviews. On the iPad (4.0-5.0) and the simulator (<5.0) this all works great. However, on the 5.0 simulator, when I do this view swapping to go to the main app view controller, all I get is a big blank (white) screen. A view gets loaded, but it doesn't contain any of the subviews in the nib (which are tied to attributes of the file owner). The file owner is set to the view controller, the top-level view is set to the file owner 'view'. As I said, everything works everywhere but in the 5.0 simulator.
I've tried changing my init method on the view controller (originally using initWithNibName:, now just using init) and again, it works everywhere else, but not on sim5.0.
I also tried loading and swapping another view controller in it's place to make sure it wasn't a problem with setViewControllers:, but everything worked fine.
I've tried cleaning the project and physically removing the build. Nothing seems to make any difference. Anyone have any idea how to fix this?