Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8283635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:48:10+00:00 2026-06-08T10:48:10+00:00

I am fairly new to XCode – I’m designing an app with a single

  • 0

I am fairly new to XCode – I’m designing an app with a single view that just displays a UIWebView that loads my jQuery mobile web site.

I have the Default.png and Default@2x.png files for the Launch images in place. When I run the app on my test device or in the emulator, it shows my Launch Image, and then flashes a white screen while the UIWebView loads the first page.

I know that I can change the background color and opacity so it will flash a different color than white, but I would like to prevent the flash altogether. I would like the app to launch, show the Launch image, and not show the UIWebView until the first page has completely loaded. Help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T10:48:11+00:00Added an answer on June 8, 2026 at 10:48 am

    @ Andreas Volz (and anyone else wondering how I solved the problem of the white “flash”)

    First, add the name-of-loading-image.png and name-of-loading-image@2x.png files to your Xcode project. The regular image should be 320 x 460, and the @2x image should be 640 x 920.

    Then, in my ViewController.h file I added these properties:

    @property (nonatomic, retain) UIWebView *webView;
    @property(nonatomic, strong) UIImageView *loadingImageView;
    @end
    

    And then in my ViewController.m file I added this:

    #import "ViewController.h"
    
    @interface ViewController ()
    
    @end
    
    @implementation ViewController;
    
    @synthesize webView;
    @synthesize loadingImageView;
    
    - (void)viewDidLoad
    {
        [super viewDidLoad];
    
    
        //**************** Set website URL for UIWebView
        [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.example.com"] cachePolicy:NSURLCacheStorageAllowed timeoutInterval:20.0]];
    
    
        //**************** Add Static loading image to prevent white "flash" ****************/  
        UIImage *loadingImage = [UIImage imageNamed:@"name-of-loading-image.png"];
        loadingImageView = [[UIImageView alloc] initWithImage:loadingImage];
            loadingImageView.animationImages = [NSArray arrayWithObjects:
                                                [UIImage imageNamed:@"name-of-loading-image.png"],
                                                nil];
        [self.view addSubview:loadingImageView];   
    
    }
    
    - (void)webViewDidFinishLoad:(UIWebView *)webView {
    
        // Remove loading image from view
        [loadingImageView removeFromSuperview];
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I fairly new to JQuery and perhaps trying to achieve something that might be
I'm fairly new to coding with Objective-C/Xcode, so I'm just trying my luck with
I am fairly new to apple and osx. I installed xcode from the app
I am fairly new to XCode and the Objective-C language. When I am instantiating
I am fairly new to XCode and the Objective-C language. When I am instantiating
Fairly new to programming. I just can't wrap my head around how to get
fairly new iPhone developer here. Building an app to send RS232 commands to a
I'm fairly new to ruby and I've got a hash that looks like so:
I am trying to build an fairly simple iPad app that requires me to
Fairly new to Google Maps API. I've got an array of data that I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.