Making splash screen animated in cocos2d-iphone? - ios

In cocos2d there is always a splash screen by default. How to replace it (or just to delete that one and make other way) with something animated , for example? Is it good idea at all? How it affects the moderation?

This is how we've handled this in our game in cocos2d-x:
Set a blank Orange LaunchImage in Xcode.
In the AppController as soon as the EAGLView is setup we change it's backgroundColor to the same Orange as our LaunchImage because it was showing a black screen for a split second before showing our animated splash scene/layer.
__glView.backgroundColor = [UIColor colorWithRed:GC_BG_COLOR_RED green:GC_BG_COLOR_GREEN blue:GC_BG_COLOR_BLUE alpha:1];
Created a scene/layer before the menu that is shown for 3-4 seconds, on which we show our brand's logo animation.
On completion of the animation we reset the backgroundColor back to the default black.

your splash screen image replace the "Default.png" in project resource.

Related

default screen background to black iOS

I see a white launch screen but my application requires black screen by default and all other elements floating.
Im able to covert latter screen black using storyboard but not the default launch screen.
create controller for that as LaunchScreen.storyboard can't have any animation only change view background or set an imageView
for that create rootViewController and do the animation in it

Xcode 8 storyboard view controllers all blue background

When I first created my storyboard all the elements on each UIViewController showed up just fine; however, after opening up my storyboard again the view controllers have turned all blue.
Is this some kind of issue with Xcode or is there a setting that turns my view controllers blue?
I have checked each subview's (UIViews, UIImageViews, etc.) tint color and background color.
I think you have to tap each of them to give them the tabbar icon, then it will become normal
Rashwan here says that having to add an image, while a good thing, is also a Xcode 8.0 bug that it turns your entire screen blue.
I added an image to the tab bar and it make my screen visible. However, the area where I added an image in the tab bar is now blue and it doesn't display properly when run on the simulator.
I think the solution is to upgrade Xcode past 8.0.

Gradient appears behind navigation bar after app launch

When my app is launching, as soon as the launch image is replaced by the initial view, a white gradient appears behind the navigation bar for one second (1st image) then disappears (2nd image).
I've tried to change the initial view to a different one to check if it's adding that gradient but it's still being added even with a plain UITableViewController.
Any clue or ideas on what might be causing this gradient during the transition from the launch image to the initial view?
update the viewwillappear method to set the navigation bar translucent
set
navigationbar.translucent = NO
Apparently this was a bug in iOS and has been fixed in 7.1

BackgroungImage of view

I have a login screen which has a background image. Initially when i run the application the image does not show up fully and it leaves blank space at the top. When the application is moved to background, and reopened again, the image is shown correctly covering the entire screen. Why this has strange behaviour? I have tried adding uiimageview and settingimge and also setting view's background color with [UIColor colorWithPatternImage: ]. Both does not work fine.. Any solution for this?

ios greying the screen

I'd like to create a function that essentially translucently greys out the screen. For example, if you hold the off button on an iPhone/iPad the screen greys out and gives you the option to turn off the device. I'd like to implement the same type of thing. If a function is called, grey out a screen and include a button on the screen, and if the button is pressed it goes back to normal.
My guess is that you would create some sort of new view and place it on top of the current view, but I am not sure how to do that.
Create a UIView subclass that has a background color of [UIColor blackColor] and set the alpha value for that view to 0.5. When you add it as a subview over whatever you view you want to obscure, it should look roughly like the "Power Down" screen tint.
Add a button to that (at full alpha) and it'll look super slick.

Resources