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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:04:23+00:00 2026-05-28T08:04:23+00:00

Ive been searching for a solution for hours and my question is really simple.

  • 0

Ive been searching for a solution for hours and my question is really simple.
I have a local notification that fires and i want to load a new view to show the user when the notification has been fired and the user have clicked the “view” button.
Is this possible and if so, how do i do it?

Thanks in advance 🙂

  • 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-05-28T08:04:23+00:00Added an answer on May 28, 2026 at 8:04 am

    In your appDelegate put this code:

    - (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notif {
    // show your view here!}
    

    this method is called when your app receive the local notification and you can also use the “notif” object to store useful data when you create the notification.

    If you have a view MyView and it’s xib file (like MyView.xib where you set the main view as MyView class) you can do something like this to load it

    In MyView.m add a class method to create a new view from a xib:

    + (id) newMyView
    {
        UINib *nib = [UINib nibWithNibName:@"MyView" bundle:nil];
        NSArray *nibArray = [nib instantiateWithOwner:self options:nil];
        MyView *me = [nibArray objectAtIndex: 0];
        return me;
    }
    

    then in the local notification callback you can have something like:

    MyView *view = [MyView newMyView];
    [self.window addSubView:view];
    

    Where window is the property you normally have in the app delegate template.

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

Sidebar

Related Questions

It's been hours that I've been searching for a solution (books, internet, etc) and
Ive been searching for solution to what seems to be a simple problem for
First let me say that I've been searching to find a solution for a
I've been searching around for the solution, and have come across the multipart and
I've been searching for a lightbox type solution that allows this but haven't found
I've been searching for a while and still can't find a simple solution to
I've been searching around for a solution to this but haven't really found one.
I've been searching and testing for a solution the last 3 hours now. I
I've been searching for hours for a solution to this problem. I'm creating a
I've been searching the net for a solution. My problem is that the info

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.