MonoTouch for iPad: how to remove Default splash image? - ios

I got an image called Default.png in my project folder and it shows up correctly as splash screen. It worked fine so far. However, for some reasons, the image suddenly shows upside down and I couldn't figure out how to fix it. At last, I thought, I can just remove the splash screen. Interestingly, I remove the reference to Default.png from my project, it still shows up. Then, I moved the Default.png to trash, but it still shows up. I guess MonoTouch cached it somehow? The same problem appears in both iPhoneSimulator and iPad device.
Only the splash image is upside down, everything else is okay. On simulator, one thing I notice is that the initial screen is shown in portrait mode, but all the icons are shown side ways (as if in landscape).
How can I turn around the upside down image?
if not possible to turn it around, how can I simply remove it?
Is this a bug in MonoTouch?

Related

Blank screen after Launch.storyboard in Apple SceneKit game - really annoying bug

So the main problem is a blank screen after Launch.storyboard finishes.
But from the beginning: I wanted to use fullscreen in my game. When I checked "Requires full screen" AND "Launch Screen File" was left empty like on the image,
... the app runs without launch screen (as expected), but I get a scene which is NOT playing as fullscreen, like on the image below, (the status bar is visible, there are also two black bars on either side). In the GameViewController I have: override var prefersStatusBarHidden: Bool { return true },
In info.plist I have:
No matter what I do I do not get full screen without visible status bar.
Now, I change to this:
And... Launch.storyboard shows itself (it has only text, not any large pictures), after this nothing happens, there is only blank screen without any images. I can hear background music, I can even touch the screen and the game runs but I do not see anything. This happens on both my physical devices - iPhone SE 1-st and 2-nd gen. attached to my computer. Interestingly, when I press device's sound level buttons, up or down, .. voila, and I can see everything now, the game scene appears! (full screen without status bar, as I expected).
I tried everything: reinstall app, remove Xcode cache, reboot computer and device - nothing works, all the time blank screen with music. I checked on the simulators - on SE (2) and others everything works fine, the launch.storyboard loads, the game is visible from the beginning. On another physical device, iPhone 12 works fine, also on iPad Pro works fine, (but for a very short time the black screen appears). Maybe it has something with memory, but on the other hand SE 2-nd gen. is rather new device.
Do you have any ideas what could be wrong and how to fix this? I do not want to publish the app until I am 100% sure that it works on all devices without any issues.
Thank you ZAY, but I think I have found the answer after many attempts. When Xcode creates the default Game scene, it creates Main.storyboard that looks like this: .
What I did: instead of default SceneKit View, I added default View, like this:
Everything seems to work now. Do not know why, but it works.

iOS 9 xCode 7 built app displays black rectangle instead of splash screen

I know this question may seem like a duplicate of a few existing ones but its not.
I am struggling with this issue where universal (iPad/iPhone) application does not display the splash screen anymore.
Before upgrading to iOS 9 and Xcode 7, no such issues were present. After upgrading no changes were made to the splash screen in any way.
Tech data relevant to the question:
Supported devices are iPad (landscape only) and iPhone
(portrait/landscape)
I use "Launch Screen.xib" that has an UIImageView with size classes and
constraints set up so that it's always full screen.
I have added all splash screen images in image assets (except iPad
Portrait ones)
I use Xcode Version 7.0.1 (7A1001) and iOS 9.0.2
This issue does not happen on an iPad
The wrong splash screen looks like this on iPhone 5s:
This is made in portrait mode, so there are white squares on top and on bottom of this "black square".
I was struggling with this issue yesterday but I managed to fix it by renaming my launch screen to "LaunchScreen.xib" (without the space). But this morning the issue re-appeared.
Things I've tried:
Removing and creating LaunchScreen.xib again with and without space
Creating LaunchScreen.storyboard file instead of xib
Adding #2x and #3x versions of image used in LaunchScreen.xib
Removing/adding/replacing images in image assets
Cleaning, build cleaning and even deleted derived data
Restarting device, reinstalling app, relaunching without building and many other solutions that I could think of.
Nothing helped, so maybe someone fixed a similar issue already and can lead me to the right direction.
EDIT 1
So I renamed my LaunchScreen.xib image used from "Default.png" to "DefaultSplash.png". This instantly fixed all issues on iPhone. But now I have a new problem - iPad splashscreen is now black. If I set the LaunchScreen image to some other image used in project, the Ipad displays it as splashscreen without any problems, but neither Default.png nor DefaultSplash.png can be used on ipad now. This is really weird issue.
In my case the images in the "Launch Screen.xib" weren't displaying. I had to rename them and reset the new names in the nib file to make it work.
So I fixed the issue like this:
Since I renamed the file LaunchScreen.xib, it fixed an issue on iPhone but caused a similar problem on iPad. Since then, I cannot use the same image file name for the same xib (i.e. if image "Default.png" failed, it cannot be used anyomre... Bug?). So I created two files, LaunchScreen.xib and LaunchScreen~iphone.xib with separate image files for each. Now it works okay.
Seems ugly and buggy but it works.
There is a change in Xcode7 iOS 9 onwards. They have modified Launchscreen(Black screen we will get).If you change deployment target means you can see the previous launch screen. Only empty view controller is present so we have make changes on it.
As per requirement in assets add images in imagecassets.
It may sound stupid but something related to this scenario may happen:
If you hook any outlet and then break it by changing the custom class you will get this black screen behavior without any warning, instead of the typical crash from any non launch storyboard/scenes this will lead to a black screen before the app start.

Splash icon slighlty varies after app launch

I have an application that needs to work on iOS6 and 7. I also have the required images for the splash. I have been facing a issue which I could not figure out how it occurs and the issue is when the splash screen loads,the initial image slightly changes after few seconds. Changes in the sense stretches a bit. This happens in landscape. Could someone point me out what can be the issue? Thanks in advance
Also note that I am setting the image according to orientation initially and on orientation change too. But before even the method for setting splash image is hit, there is an image already present on the screen. Where did this image come from? I even removed Launch image option from app's general settings but it still seems to assign an image by default !
Splash Landscape = 1024x768 and its #2x = 2048x1536
Splash Portrait = 768x1024 and its #2x = 1536x2048
I think you are missing the key point that landing image are 20px short from landing mode
Splash Landscape = 1024x768 Not correct
Splash Landscape = 1004x768 Correct
I found what was going wrong. I had images named as Default.png and Default#2x.png which were portrait images in my resource folder. I deleted and removed their references but the issue persisted. So I removed them from the project and renamed the required images, reset the simulator and run. Got it fixed. I guess the Xcode 5 automatically takes the images by default from resources and loads in the Launch Images in general tab. I even removed Launch Image set in general tab.

Resize effect of iOS launch images (and AIR?)

I have a problem when I use launch images in an Air application. I don't know if this is the expected behaviour, but when the app starts, the launch image is first displayed as expected, however then it gets resized for a second.
I don't care too much about this, although since the iPhone images have to take into account the statusbar, the effect is a bit ugly in this case.
Can this be solved? is it a problem with Air? is it expected behaviour?
I noticed a similar problem with AIR 3.2 and a fullscreen, fixed-orientation (landscape) app in iOS - the splash image starts in landscape, then flips to the wrong orientation during loading. I suspect it's a bug but couldn't find a workaround.
Since I don't see any pressing reason to move to 3.2, I'm sticking with AIR 3.1 for the time being, which displays the splash image correctly.

iOS Simulator Loading Upside-Down in XCode

I haven't done anything funky with my code, and am running the latest version of XCode, but for some reason when I run a build on the simulator, everything works perfectly except for the fact that it's upside down. Any idea why that could be the case?
Thanks in advance.
I had (have) this problem also. At first I though I found it when I created a fresh app and compared the Info.plist and discovered my app had the Supported Device Orientations different from the fresh app.
Specifically, I had Portrait Top above Portrait Bottom. After I put the Portrait Bottom at the head of the list the problem disappeared.
Or so I thought. I reorganized the main folder and put all the PNG files into a Resources folder. Deleted the old references in the project and add in the new locations and now the problem is back.
Also, noted the problem is occuring on the actual iOS device. You can see in this launch pix the status bar and picture are both upside down. As soon as my mainView loads the view orients correctly and becomes upright in the Portrait Top orientation.
[Picture of the launch1
There has to be something about the project file that is causing this. Still searching.
Looking around I found [this2 which states the order is important and the top most is the inital view. So now I am really puzzled as the Portrait Bottom is at the head of the list.
This happened to me too today. Easiest temporary fix is to look at your target's "Supported Device Orientations" on the "Summary" tab. My guess is that both "Portrait" and "Upside Down" are selected.
For some reason my XCode was defaulting to "Upside Down" and deselecting that orientation made the problem go away.
Found the solution!
Evidently there is a bug in Interface Builder. If you simply click off all the orientations, then click them back on in the desired order the Info.plist is built correctly.

Resources