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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:19:11+00:00 2026-05-31T15:19:11+00:00

nilMy app needs to run a few checks then maybe display a UIAlertView any

  • 0

nilMy app needs to run a few checks then maybe display a UIAlertView any time my application becomes active. To do this I have registered for didBecomeActiveNotification and run my check here.

The issue occurs whenever my UIAlertView pops up during the initial launch, it causes the “Applications are expected to have a root view controller at the end of application launch” message. I’m guessing this is happening because UIAlertView is shown before viewDidAppear:.

How should I be triggering my UIAlertView if not in didBecomeActiveNotification?

2012-03-16 12:21:47.238 App[4181:707] viewDidLoad:
2012-03-16 12:21:47.462 App[4181:707] didBecomeActiveNotification:
2012-03-16 12:21:47.793 App[4181:707] Applications are expected to have a root view controller at the end of application launch
2012-03-16 12:21:48.500 App[4181:707] viewDidAppear:

Edit: To trigger this in a new project do the following.

1 New Project -> Single View Application

2 In Viewcontroller.m add the following to viewDidLoad:

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didBecomeActiveNotification:) name:UIApplicationDidBecomeActiveNotification object:nil];

3 In ViewController.m add the following method

 -(void)didBecomeActiveNotification:(NSNotification *)notification
{   
    UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:nil message:nil delegate:self cancelButtonTitle:@"ok" otherButtonTitles: nil];
    [alertView show];
    [alertView release];
}

4 Build and Run

  • 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-31T15:19:12+00:00Added an answer on May 31, 2026 at 3:19 pm

    Just as i said, no console messages, nor compiler-warning.
    Can you confirm that the message is only visible with the alert shown and there’s no such message without an alert ?

    enter image description here

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

Sidebar

Related Questions

Questions: Every time i open a nib, new instances of the items in the
I am using CakePHP to create a simple app and I decided to use
Having read up on quite a few articles on Artificial Life (A subject I
I was tweaking my .htaccess file for the first time, and ran into the
I've had a bit of a sniff around google for a solution but I
if I use this I get an error because c is never set. (if
I want to search the matching strings from a mysql table. The search string
I'm using Google Chart ( http://code.google.com/apis/chart/ ) to produce some graphs for my company.
Example: // access fields directly private void doThis() { return doSomeWork(this.data); } // receive
I could swear that just a couple of months ago I downloaded a copy

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.