How can I take the splash loading screen, usually Default.png, into something that will show the iad banner on it, forcing users to view an ad for 3 or 4 seconds before opening my app?
Your app takes 3 or 4 seconds to load?!
First of all, the Default.png is displayed by the OS while it waits for you to finish loading. It isn't a view that you have direct control over, so you cannot do this.
1. you can tell you splash screen to hold for a little while.
2. You can tell a view with you own ad to show for a few seconds after launch
although you can display an ad it must be your own. The iAds can only be displayed in a 320*50 or 480*32 format.
If you are a paid developer i suggest you check out the WWDC videos from this year they have a few on iAds.
You can't, really. And even if you could, please don't.How can I take the splash loading screen, usually Default.png, into something that will show the iad banner on it, forcing users to view an ad for 3 or 4 seconds before opening my app?
1. You do not have control over the contents of the view, other than making the png file in the first place.
2. ... "Tell a view with your own ad to show for a few seconds after launch" I suppose so, but you would still have to hardcode in the ad contents (unless you wanted to make the user view a blank or default add while you fetch something from the network). You CANNOT have an ADBannerView showing while it has no content, at least not if you want to have it on the store. And you are correct, there are very limited size constraints on iAd views.
There are a number of possible solutions to achieve this end. The real question is: why would you want to delay your users from using your app?Actually now I'm curious, how can you tell the splash screen to hold for a defined amount of time? Without sleeping on the main thread or something...
Really? What does your application:didFinishLaunchingWithOptions: look like then?I don't have that call in my applicationDelegate, so unfortunately that doesn't help and probably wouldn't help.
Your app pops up the keyboard on startup (and you've coded to avoid that)? Why would it try to do that?Basically in previous versions of the SDK when apple sent the notification UIKeyboardWillShowNotification they had already created the keyboard view and were about to animate it onto the screen.
Really? What does your application:didFinishLaunchingWithOptions: look like then?
- (void)applicationDidFinishLaunching:(UIApplication *)application {
// Add the tab bar controller's current view as a subview of the window
[window addSubview:tabBarController.view];
}
So, where is your window ever made visible?Code:- (void)applicationDidFinishLaunching:(UIApplication *)application { // Add the tab bar controller's current view as a subview of the window [window addSubview:tabBarController.view]; }
So, where is your window ever made visible?
sleep(3);
- (void)applicationDidFinishLaunching:(UIApplication *)application
[window addSubview:[mainViewController view]];