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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:24:03+00:00 2026-06-05T00:24:03+00:00

I have an IOS App that can open a specific type of documents. My

  • 0

I have an IOS App that can open a specific type of documents.

My App receives the document through:

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

when it was not yet started or through

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

when the App was already started.

When my App is already started the user may have already opened many views in my App. Next when my App is triggered to open the document, how can I open and navigate to the right view (closing the old hierarchy and open the new one to display the document)?

I have tried to use:

- (void)transitionFromViewController:(UIViewController *)fromViewController toViewController:(UIViewController *)toViewController duration:(NSTimeInterval)duration options:(UIViewAnimationOptions)options animations:(void (^)(void))animations completion:(void (^)(BOOL finished))completion

with fromViewController = the rootViewController (retrieved using UIApplication & UIWindow) and the toViewController: the ViewController I need to display the document but without success.

Any ideas how to progress on this topic?
Thanks,

Sébastien.

  • 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-05T00:24:06+00:00Added an answer on June 5, 2026 at 12:24 am

    There isnt a quick answer to this question
    I faced your same problem, where i had a ReaderViewController that reads the documents
    I had a MainViewController that pushed the ReaderViewController as a modal controller

    In my situation when the user opened an external document, i would do the following
    • pop the existing view controller
    • read the url, copy the file
    • open the document
    • present a new ReaderViewController with the new document

    And that did it for me,
    But i dont think there will be an exact solution to be implemented in each case of openURL
    I think you should work on your view hierarchy more and study your own situation to see what views you should pop or dismiss and what views you should push or present

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

Sidebar

Related Questions

I have an iOS app that makes phone calls using the Telephone application by
I currently have an iOS app that can 'bootstrap' it's database from a bunch
I have a Rails app that has 2 clients -- an iOS app reads/writes
I have an app on my iPhone that was built on iOS 5 and
I have an iOS app that displays content from a sqlite db in a
I have an iOS 5 App that consumes webservices from a Rails 3 server.
How can I add a timer to my iOS app that is based on
I have an iOS app that posts to users FB feeds with a link,
I have developed an iOS app that uses CoreData/SQLite. It works, but now I
I have built an iOS app that leverages Core Location Framework. I have Xcode

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.