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 8131277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:02:49+00:00 2026-06-06T09:02:49+00:00

I am working with UILocalNotification.Here When i Launch the notification i need a specific

  • 0

I am working with UILocalNotification.Here When i Launch the notification i need a specific view in application.But I have tried like below coding .

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    

    // Override point for customization after application launch.
     [[UIApplication sharedApplication]setStatusBarHidden:NO];

    SplashView *mySplash = [[SplashView alloc] initWithImage:
                            [UIImage imageNamed:@"Splash.png"]];

    [window insertSubview:mySplash atIndex:1];

    [window makeKeyAndVisible];


    mySplash.delay = 5;
    mySplash.animation = SplashViewAnimationFade;
    [mySplash startSplash];
        [self.window insertSubview:viewController.view atIndex:0];
        [self.window makeKeyAndVisible];
        [mySplash release];

    // Add the view controller's view to the window and display.    [self.window addSubview:viewController.view];

    UILocalNotification *localNotification = [launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey];

    if (localNotification) 
    {
        NSLog(@"Notification Body: %@",localNotification.alertBody);
        NSLog(@"%@", localNotification.userInfo);
    }
    [[UIApplication sharedApplication] cancelAllLocalNotifications];

    application.applicationIconBadgeNumber = 0;
    return YES;

}





- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {

UIApplicationState state = [application applicationState];
    if (state == UIApplicationStateInactive) {

showItemContrller = [[Showitem alloc] initWithNibName:@"Showitem" bundle:nil];
        [self.window addSubview:showItemContrller.view];
        [self.window bringSubviewToFront:showItemContrller.view];

}

}

But When i launch the notification it is showing the previous view for fraction of seconds the it is going to showItemControllerView.

Thanking you

  • 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-06T09:02:53+00:00Added an answer on June 6, 2026 at 9:02 am
     //comment this line.... 
    
    //[self.window insertSubview:viewController.view atIndex:0];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have UILocalNotification the has two buttons a cancel and view button when the
I'm working on an alarm/reminder application and want to show a custom alarm view
Working on a project where I need to add points to an array. Here
Working on a project an need a specific effect on the homepage. When a
In my i'm using a action sheet picker view. It is working fine. But
Working with Reporting Services 2008 r2. So here's my issue: We have 5 reports
i'm working with UILocalNotification, and i have read the apple documentation about it at
Working on my first Android app here. I've searched and tried everything I can
Working with the Box2djs plugin here: http://www.crackin.com/dev/mms/physics/ ... and all I'm trying to do
I'm trying to attach an NSManagedObjectID to a UILocalNotification but keep getting the error:

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.