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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:44:35+00:00 2026-05-30T00:44:35+00:00

Short Version: When I exit the App (home button), UIApplicationExitsOnSuspend is set to NO

  • 0

Short Version:

When I exit the App (home button), UIApplicationExitsOnSuspend is set to NO, and open a custom file from Mail into my App, which method of a UIViewController is invoked?

Alternatively, How do I make my AppDelegate to -performSegueWithIdentifier of my rootViewController? Is this code safe?

UIViewController *vc = [self.window.rootViewController.childViewControllers objectAtIndex:0];
[vc performSegueWithIdentifier:@"ChiesaSegue" sender:vc];

More Details:

I have got my App with storyboard “Embedded In” a Navigation Controller with two different UIViewControllers, let’s say FirstVC and SencondVC connected together with proper Segues. I have associated custom file extensions (let’s say .q80) with my App by setting up my info.plist file, and I can see my custom file showing up with my App icon in Mail. All of this works perfectly fine.

I close the App (home button), and go to Mail, and “Open In..” a file, App opens up and I properly handle the incoming URL in AppDelegate‘s

-(BOOL)application:(UIApplication *)application openURL:(NSURL *)url 
                                      sourceApplication:(NSString *)sourceApplication 
                                             annotation:(id)annotation

Now, I want to be able to load the data of this imported URL in my SecondVC, however every time I “Open In..” a file I get old data back exactly the way I left it when I hit the home button. I don’t know which method of FirstVC or SecondVC is invoked after my URL is processed in application:openURL:sourceApplication:annotation! I am cleaning the old data and setting up the new data in -viewDidLoad, and also -viewWillAppear. Nothing happens!

Let me know if you need code, or other details I might have missed.

  • 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-30T00:44:37+00:00Added an answer on May 30, 2026 at 12:44 am

    It is entirely possible that none of the view controller viewWillLoad/Appear/etc methods will be called when returning from the background. If you need to some behavior in the view controllers based on things in the openURL application delegate method, then you have to trigger it explicitly. You could use a NSNotification for this purpose. Alternatively, if your openURL method is modifying some application model state, you could use key-value observing on your model objects.

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

Sidebar

Related Questions

Short version: How do I incorporate my custom ASP.NET/VB.NET stuff into a DNN site?
Short Version: When I've created a Channel using ChannelFactory on a client which uses
Short version: How can I map two columns from table A and B if
SHORT VERSION OF QUESTION: So basically my question is: How can I set the
Short version: Can we read from dozens or hundreds of table partitions in a
Short version: I think I'm asking for a file too soon, but it's pretending
Short version : How can an MFC ActiveX control loaded into a web page
SHORT VERSION: How can I load classes during runtime from a bundle, when those
Short version : VB.Net Windows forms feature controls that are often dragged from the
Short version: I need mysql code that will change [href=http://a-random-domain.com]hyperlink[/href] into <a href=http://a-random-domain.com>hyperlink</a> without

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.