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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T10:17:58+00:00 2026-06-06T10:17:58+00:00

If the application was previously in the background, when applicationDidBecomeActive is called,how can I

  • 0

If the application was previously in the background, when applicationDidBecomeActive is called,how can I optionally refresh the user interface ?

I expect the current view controller is always the initial view controller in storyboard.I can’t get the pointer to storyboard in my main AppDelegate.m .

How can I check and determine which view controller is currently showing ?

  • 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-06T10:18:00+00:00Added an answer on June 6, 2026 at 10:18 am

    If you just want a pointer to your storyboard then you can do this:

    UIStoryboard *sb = [[[self window] rootViewController] storyboard];
    

    where rootViewController is actually the initial view controller of your storyboard. If you expect this controller to be the current controller (as you say) then you’re good to go, but if you want to actually update your UI, then I guess you could post a custom notification from the delegate (inside applicationDidBecomeActive), and register each controller that may be interested to catch it so it can update its UI (or just add self as observer for UIApplicationDidBecomeActiveNotification to catch the same one that your delegate catches…).

    PS. If your rootViewController is a UINavigationController you can get the currently showing controller like this:

    id currentController = [[[self window] rootViewController] visibleViewController];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If the application was previously in the background, when applicationDidBecomeActive is called, I expect
I'm building a Spring MVC web application with Tiles/JSP as the view technology. Previously
I implemented Admob in my application previously in 3.x versions of SDk there i
is there a way to capture application that was previously active, before my application
The only type of 'remote desktop' application I've used previously is VNC viewer. My
I have an application that uses CoreData. I previously had a class named Marker
I have an application that contains a VC++ project (along with C# projects). Previously,
I'm converting my Android application to use fragments. Previously, I had an activity that
The company I work for is preparing for application testing in IE8. Previously we
I want to define the background for my application in App.XAML. The background was

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.