Launch a splash screen when an iPhone app starts

Hi, I am trying to make a simple game for the iPhone, and when the app launches, I want a splash screen with instructions to come up. I also want the user to be able to push anywhere on the screen to dismiss it. However, the splash screen doesn't load! I made a new nib file with the splash screen, created a view controller, and a UIView subclass for the screen. Then, I inserted this code into the applicationDidFinishLaunching method of the app delegate:
- (void)applicationDidFinishLaunching:(UIApplication *)application {
[window addSubview:[splashViewController view]];
splashViewIsCurrentView = YES;
[window makeKeyAndVisible];
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
if(splashViewIsCurrentView) {
[[splashViewController view] removeFromSuperview];
[window addSubview:[gameViewController view]];
splashViewIsCurrentView = NO;
I forgot to mention, in interface builder, I made the splash view's class as SplashView, and the File's Owner as the SplashViewController. Also, splashViewIsCurrentView is a boolean I made.

I like the idea behind your use of "splashViewIsCurrentView". I think that may solve my problem.
I too have a full-screen instruction view pop up over the main input view of the app. The instruction view is added as a subview of the main input view. I want to dismiss the instruction view with a touch. However, in the instruction view view controller, the touch even methods are not fired - even after twiddling with enabling user interaction on the instruction view and its subviews of label and fiddling with their frame sizes. While the instruction view is displayed over the main input view, the touch events are actually still associated with the main input view (and its controls) underneath. Seems like I am forgetting something but i don't know what.
Your solution will probably work well and it is similar to what I was originally doing in handling the touch events in the main input view view controller. However, technically, it seems kludgy to not be able to handle the touch events in the instruction view view controller where it seems to make more sense to do so.
Would you or anyone else know why or have any suggestions on things to look out for? The view and controls involved are all supposed to be descendants of UIResponder. Is there a bug or restriction I'm not aware of? Wondering why you went the route you did. Seems like you may have run up against what I am currently facing.

Similar Messages

  • AIR 3.9 as3 IOS app stuck on launch / loading / splash screen

    When deploying an app to ipad2 ios7/iphone4 ios6/iphone5 ios7 the app doesnt get past the loading/splash screen.
    Ive tried debugging on the device via usb but doesnt even hit the first breakpoint on the firtst line of code. Also deployed via testflight with the same result ie stuck on the loading screen.
    I released the app in December but the app freezes on the loading screen from the app store!!?? Ive no idea how this passed apple testing etc and it previosly worked. ..Has anyone got any advice on how to debug this or does anyone know what could be the problem?
    Ive now created a VERY simple app for testing, this includes all icons etc and just displays some text in a text box. This also freezes on the loading screen.
    Im using Flashbuilder 4.7 with air 3.9
    Ive updated compiler arg with -swf-version=22
    application descriptor updated with - <application xmlns="http://ns.adobe.com/air/application/3.9">
    included icons are -
    <icon>
    <image16x16>16x16.png</image16x16>
    <image29x29>29x29.png</image29x29>
    <image32x32>32x32.png</image32x32>
    <image36x36>36x36.png</image36x36>
    <image40x40>40x40.png</image40x40>
    <image48x48>48x48.png</image48x48>
    <image50x50>50x50.png</image50x50>
    <image57x57>57x57.png</image57x57>
    <image58x58>58x58.png</image58x58>
    <image72x72>72x72.png</image72x72>
    <image76x76>76x76.png</image76x76>
    <image80x80>80x80.png</image80x80>
    <image96x96>96x96.png</image96x96>
    <image100x100>100x100.png</image100x100>
    <image114x114>114x114.png</image114x114>
    <image120x120>120x120.png</image120x120>
    <image128x128>128x128.png</image128x128>
    <image144x144>144x144.png</image144x144>
    <image152x152>152x152.png</image152x152>
    <image512x512>512x512.png</image512x512>
    <image732x412>732x412.png</image732x412>
    <image1024x1024>1024x1024.png</image1024x1024>
    </icon>
    included launch images are -
    Default.png
    320 x 480
    iPhone, standard resolution
    [email protected]
    640 x 960
    iPhone, high resolution
    [email protected]
    640 x 1136
    iPhone, high resolution, 16:9 aspect ratio
    Default-Portrait.png
    768 x 1004 (AIR 3.3 and earlier)
    768 x 1024 (AIR 3.4 and higher)
    iPad, portrait orientation
    [email protected]
    1536 x 2008 (AIR 3.3 and earlier)
    1536 x 2048 (AIR 3.4 and higher)
    iPad, high resolution, portrait orientation
    Default-PortraitUpsideDown.png
    768 x 1004 (AIR 3.3 and earlier)768 x 1024 (AIR 3.4 and higher)
    iPad, upside down portrait orientation
    [email protected]
    1536 x 2008 (AIR 3.3 and earlier)1536 x 2048 (AIR 3.4 and higher)
    iPad, high resolution, upside down portrait orientation
    Default-Landscape.png
    1024 x 768
    iPad, left landscape orientation
    [email protected]
    2048 x 1536
    iPad, high resolution, left landscape orientation

    I have the same problem, AIR 4 (1628) and compiler -swf-version=23; testing on iPad3, iOS 7.0.6
    The app launches less than half of the time successfully.
    Mar  5 11:46:09  backboardd[29] <Warning>: CoreAnimation: timed out fence 2a207
    Mar  5 11:46:09  backboardd[29] <Warning>: CoreAnimation: timed out fence 2a0df
    Mar  5 11:46:09  SpringBoard[33] <Warning>: CoreAnimation: failed to receive fence reply: 10004003
    Mar  5 11:46:09  backboardd[29] <Warning>: CoreAnimation: updates deferred for too long
    Mar  5 11:46:13  backboardd[29] <Warning>: <app ID replaced> failed to resume in time
    Mar  5 11:46:13  backboardd[29] <Warning>: Forcing crash report of <app ID replaced>[136]...
    Mar  5 11:46:14  backboardd[29] <Warning>: Finished crash reporting.
    It might have something to do with the new way iOS7 shows the last active screen of an app as a screenshot and optionally replaces it with the running app, if the app had been killed in the background. That way, it seems that more apps are running concurrently than the device supports. There's often a flicker showing the real app behind the splash screen WHEN I minimize a stuck splash screen.

  • Black splash screen when launching Logic Express 7.2.1

    hello, i recently installed final cut express hd (universal) and a recent pro app update. ever since then, i get a black splash screen when launching Logic Express 7.2.1. i've tried reinstalling logic, but nothing changes. how do i uninstall the pro app update, will this fix the problem? should i uninstall final cut?
    thanks.

    Hi M,
    did you tryed this?
    http://www.apple.com/support/downloads/proapplicationsupport31macosx104.html
    Best regards,
    Jorge

  • I find using the iPhone / iPod size virtual keypad much easier to use with a stylus...as when an iPhone app is installed on the iPad.  Anyway to use the iPhone size keypad with all apps?

    I find using the iPhone / iPod size virtual keypad much easier to use with a stylus...as when an iPhone app is installed on the iPad.  Anyway to use the iPhone size keypad with all apps?

    I don't want the keyboard to become bigger.  Wish there was a way to always have the iPhone sized keypad available for use with any app.  When typing with fingers or stylus, the distance between keystrokes is SO much shorter and efficent on the iPhone keypad vs the "full size" iPad keyboard.
    I've heard that there will be some keyboard options when the new IOS comes out...wish this was one of them.
    Haven't looked yet, but is there a place you can recommend things such as this to Apple? 
    Thanks.

  • 970 GAMING black screen when boot on cold start, have to clear CMOS everytime

    I have 970 GAMING w/ FX8320, it shows black screen when boot on cold start, have to clear CMOS everytime to enter default.
    I have updated it to the up to date M11 bios. Once it boot up, it functions OK no matter whether you reboot or reset it. But after turned off a few hours (cooled down), it shows on black screen again on boot, all LED lights up OK, but I can hear the fan like keep rebooting, any idea?
    PSU seasonic 430W, GPU HD7750.

    In what DIMM slots did you insert your memory?  I just got and at this moment building a new computer with a 970. 
    A horrible experience I had with my last build reminded me of it.  My board was am MSI A88XM-E45.  DIMM1 is blue, DIMM2 is black, DIMM3 is blue, & DIMM4 is black.  When using two sticks of RAM, it says to install one on DIMM1 & the other in DIMM3 (Makes sense... After all, it's color colored that way).
    Well it would not boot.  I reseated every component and for HOURS tried almost everything.  Finally I decided to place my two sticks of RAM in the first two DIMMS and viola!
    I think I will begin this build the same way.

  • How do I make a Splash Screen for my Android App.

    Hello, I am currently making an app, for school and cant find out how to make a Splash Screen. I'm using Flash Builder 4.7 and can only find tutorials for 4.5. I just need it so that when the app opens there is not a white screen forever while its loading up, any help would be great.
    Thanks!

    Copy into Apple Pages. Export a PDF.

  • Splash screen when application packaged with captive runtime (Windows)

    Is there any way to show your applications splash-screen while the Captive Runtime loads?
    After packaging my air app with captive runtime on windows the app takes a few seconds extra before showing on the screen. The taskbar-entry appears fast, but the application main window appears much slower than when packaging as native installer without runtime included.

    HI DHL83,
    Not that I know of but I'll ask around.  I've seen at least one other report that startup is slower so I'll try to get to the bottom of this.  In the meantime, would you mind opening a new bug over at bugbase.adobe.com regarding the startup performance hit?  It would be great if you could also provide us with a sample application that illustrates the slower startup time.  If you'd like to keep it private, please email me directly at [email protected]
    Thanks,
    Chris

  • Can't fully launch beyond splash screen, corrupted database?

    I'm using a MacPro with LR v1.2, OS v10.4.10. A few days ago, I got the spinning beachball while in LR, had to Force Quit. When I tried to relaunch, I could only get the splash screen and menu.
    Each time I launch LR, I backup. Every other day or so I optimize the database from Catalog Preferences. I had added about 700 photos a few days earlier, for a total of about 8,700.
    I've gone to the Adobe LR knowledge base, followed their instructions for going back to an earlier backup, but though I've gone back some days, one by one, from the day I had the problem I still only get perhaps one photo, the rest grayed out, immediately. If I wait some time, some previews will start showing up (so far for at least one folder of photos after perhaps 20 minutes).
    Is it just a matter of waiting long enough for the previews to show up or do I have to go much further back in my backups to find one which will have all the photos show up right away (normal behavior)?

    This sounds very similar to problems we are having in the thread called "Lightroom no longer opens," http://www.adobeforums.com/webx/.3c0540fe/10
    It might be worth it to try the solution that is described there, Especially since you have so many back ups. I have to finish some editing before I try it myself to restore my 65,000 image catalog.

  • Splash screen for a desktop app (non mobile app)

    I'm using fb4linux, 4.5.1A SDK, I'm developing a non-mobile (i.e. desktop application) and I would like to add a splash screen to it.
    I've added mobilecomponents.swc to the library path, and the application starts like this:
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx"
       width="400" height="400" xmlns:local="*"
       preloader="spark.preloaders.SplashScreen"
       splashScreenImage="@Embed('assets/splashscreen.png')"
       splashScreenMinimumDisplayTime="1500">
    When I debug it, no splash scren is shown and I get the following error:
    ReferenceError: Error #1065: Variable flash.display::StageAspectRatio is not defined.
        at spark.preloaders::SplashScreen/prepareSplashScreen()[E:\dev\4.5.1\frameworks\projects\mobilecomponents\src\spark\preloaders\SplashScreen.as:340]
        at spark.preloaders::SplashScreen/Stage_resizeHandler()[E:\dev\4.5.1\frameworks\projects\mobilecomponents\src\spark\preloaders\SplashScreen.as:407]
    The problem seems to be triggered by the line that sets the preloader, because if I remove it, the error is gone (although no splash screen is shown either).
    Any ideas how to make it work?
    Thanks!

    import [install folder]\Adobe\Adobe Flash Builder 4.6\sdks\4.6.0\frameworks\libs\mobile to your build path
    Note: You must add the frameworks\libs\mobile\mobilecomponents.swc to the library path of the application to support the splash screen in a desktop application.

  • Desktop Manager Will not Load. Hangs on splash screen when loading, then crashes

    My desktop manager is not loading, and hangs whenever it is attempted to load. I have done a clean uninstall, removed rim registry entries, and did a fresh download and install 3 times with full shut downs between each attempt. I am running Windows 7 service pack 1 with an HP Laptop. It is an HP Pavilion dv6 Notebook PC. Product Number LY080UA. I hope that is enough information, but I will give more if asked and informed how to gather such info.
    When I right click on the Desktop Manager Icon, I choose to run as Admin. Once it loads the splash screen shows. After a little bit (4-6 seconds) a small Icon appears in my systems tab at the bottom right of my screen. This stays for a little while and then goes away. After this happens the Splash screen hangs, and get a black border around it. If I click on the Splash screen it grey out and says not responding, prompting windows to ask me if I want to wait for the program or close. If I choose to wait, it will sit there and do nothing. If I close it will prompt windows to "look for an error" but has not yet been able to return an answer.
    When I log into safe mode, Desktop Manager loads, but does not work well as only a bare bones set of drivers are enabled. If I turn off all but the non-essential services off using services.msc it will load, but again the services needed for it to run and the services for windows to be fully functional are not on at all.
    I have attempted to turn off all but the Desktop manager in the start up, using msconfig, but that does not help either.
    I am at my wits end here, and would really like some help with this. It loads up (desktop manager) on my Desktop, but I am unable to log that mammoth box around with me while I travel.
    Thank you for your time and efforts, I will be very grateful for any and all help.

    I'm having the exact same problem here! I'm running Windows 7 Ultimate SP1 x64. Please help! This was posted a month ago.

  • My ipod touch ( Gen 4 ) goes to home screen when loading a app, and sometimes in the middle of the app. Any ideas how to fix this? One game won't load at all now. Thanks in advance for the help..

    I have had this touch for almost a year. It suddenly starts going to home screen in middle of app, or when loading the app. Contract Killers has worked fine since I dowloaded it, but is not loading at all now. If I restore, will I be able to get my progress back from the backup?

    Reset did not work. Just completed the restore, seems to have fixed the other apps from going back to the home page, but not Contract Killer.. I assume it is now a error on Glu's part. Hopefully they will resolve the issue. Thank you so much for your response.

  • I keep getting an audi add as a background or splash screen when I bring up my home page (simpatico msn) how do I get rid of it?

    when ever I start firefox my home page opens and I have the standard home page but lately I have been getting an Audi ad as a splash screen behind my home page window, my home page is Simpatico Canada

    The settings for the warning messages have been removed from the user interface (Bug 513166).
    You need to change the related security.warn_* prefs directly on the <b>about:config</b> page.<br />
    Filter: security.warn
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold(user set).
    *Preferences can be reset to the default or changed via the right-click context menu.

  • Splash screen when running from shortcut

    I have a web start app, version 1.2, with a custom splash screen and icon (2 entries in jnlp, one with type="splash"). This works just fine IF you run from the web page (I get a nice splash, followed by the "loading" window with my nice icon). If after running the app twice and allowing it to create a desktop shortcut, I run from that shortcut - the splash screen doesn't show. The plain icon is still around, just not the splash.
    Anyone else seen this and know how to fix it?
    TIA
    Mike

    The splash screen never seems to display for very long, so I can't tell if it works correctly or not. I just created my own splash screen in the application and everything works great.

  • Where is status bar when running iphone app

    I've updated my iPad Mini to iOS 7 and now when I run iPhone apps I don't see the status bar (time and battery level etc).  It used to show in iOS 6.
    I see the status bar fine when running iPad apps, just not iPhone apps.
    Any ideas?

    I don't know which app your using but you can try deleting it and reinstalling it from the cloud. If it's in iPhone mode, you should see the 2x but when you switch it to 2x yes the option seems to disappear to go back to 1x when you are using IOS 7.
    I lost the 1x on one of my apps but when I removed and reinstalled, it was there again. The time was showing at the top when I reinstalled it again from the cloud.

  • Me.vs .mac when updating iphone apps

    Not sure how to phrase this. My wife and I both have .mac accounts..which became mobileme accounts (meaning we have both endings .mac and .me). I notice whenever I update my iphone apps and go through the downloads process, when done, the message pops up "[email protected] does not have any more updates." Hers, however, says "[email protected] does not have any more updates." We both set ours up the same way (using the .mac verbiage), so I can't understand why the difference.
    Message was edited by: powerbook1701

    they fixed

Maybe you are looking for

  • Links do not display correctly in my pdf

    www and http are not displaying in pdf files converted from MS Word When I convert a Word document to pdf using Acrobat Pro 9.0, the website addresses do not display correctly. For instance, if my document shows www.website.com - then the pdf only di

  • Error in installing GWPA

    Hii I want to install GWPA in my eclipse. I have installed android sdk.But i am getting  the following error , while installing GWPA I have used the following document for installing GWPA How to install Gateway Productivity Accelerator (GWPA) plugin

  • Allowing digital signatures in Reader 7.0 (WIN)

    I know I'm missing something simple, but can someone tell me how to get Designer 7.0 (WIN) to allow digital signatures in a form opened in Reader 7.0 (WIN)? I've tried everything I can find, including permissions, but it doesn't work for me. Thanks,

  • How to Bring a Flash CS5 Animation into Fireworks CS5

    I am using a IMac with OSX 10.6.8. I am attempting to bring a Flash CS5 animation into Fireworks with individual frames and transparent background. I need some ideas here. thanks Paul

  • New Editor, no breadcrumb

    Hi, the old BC editor had this nice breadcrumb at the bottom to show all tags, a text is wrapped into. One could simply click the "remove tag" link right to the breadcrumb to get rid of redundant markup (p > p > strong > font > font). Is there any si