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

  • Home
  • SEARCH
  • 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 9214807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:03:22+00:00 2026-06-18T02:03:22+00:00

Im trying to load a image after splash image goes off.So i thought of

  • 0

Im trying to load a image after splash image goes off.So i thought of adding a imageview to self.window in application did finish launching method.Im picking the image from caches directory.But its showing a blank screen before it loads the rootview controller .
How can i implement this
Here is my code to add a image to imageview and in turn add image view to self.window as sub view….

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    documentsDirectory = [documentsDirectory stringByAppendingPathComponent:@""];
    imgView.frame=CGRectMake(0, 0, 768, 1024);

    NSString *URLImg = [documentsDirectory stringByAppendingPathComponent:@"SplashIpad.png"];
    UIImage *imgAvtar = [[UIImage alloc]initWithContentsOfFile:URLImg];
    [imgView setImage:imgAvtar];
    [self.window addSubview:imgView];

Please suggest me how to load a image after splash screen goes off.

  • 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-18T02:03:23+00:00Added an answer on June 18, 2026 at 2:03 am

    As par you logic and code you can do like this way:-

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
        self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
        self.viewController = [[[clsViewController alloc] initWithNibName:@"clsViewController" bundle:nil] autorelease];
    
    
    
        NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
        NSString *documentsDirectory = [paths objectAtIndex:0];
        documentsDirectory = [documentsDirectory stringByAppendingPathComponent:@""];
        NSLog(@"do ==%@",documentsDirectory);
    
        NSString *URLImg = [documentsDirectory stringByAppendingPathComponent:@"index.jpg"];
    
        NSLog(@"==%@",URLImg);
        UIImage *imgAvtar = [[UIImage alloc]initWithContentsOfFile:URLImg];
    
        UIImageView *imgView=[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 150, 150)];
        [imgView setImage:imgAvtar];
        imgView.center=self.viewController.view.center;
    
       // UIImage *imgAvtar = [UIImage imageNamed:@"index.jpg"];
    
        [self.viewController.view addSubview:imgView];
         self.window.rootViewController = self.viewController;
        [self.window makeKeyAndVisible];
        return YES;
    }
    

    Screen Shot:-

    DEMO LINK:
    In demo i fetch image from NSBundal but you can use my above logic at didFinishLaunchingWithOptions method

    http://www.sendspace.com/file/8srobj

    NOTE:-

    Insure that at the Path of /iPhone Simulator/6.0/Applications/8886B938-3EFB-4F0C-96F9-41ACAE508F2B/Library/Caches/index.jpg the Image with name of index.jpg palce in catch folder

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to automatically load an image full screen after the application is
When I'm trying to load an image via Qt console application in Xcode everything
I'm coding in c++, and I'm trying to load an image file asynchronously. After
I'm kind of stuck since this morning... i'm trying to load an image after
I am having a problem trying to load an image after an element has
I'm trying to load image from a plist to a custom cell. It all
Im trying to load a image at runtime in WPF using the following code
I am trying to load an image but it is showing the error message
I am trying to load an image and add some text to it. my
I am trying to load an image in memory but might have memory issues

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.