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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:39:39+00:00 2026-06-14T07:39:39+00:00

The error is not every time. i had try to clean and rebuild app,but

  • 0

The error is not every time.
i had try to clean and rebuild app,but it is also.

error:

 *** Assertion failure in -[UIWindowController 
    transition:fromViewController:toViewController:target:didEndSelector:], 
   /SourceCache/UIKit_Sim/UIKit-2372/UIWindowController.m:211

 *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', 
     reason: 'Attempting to begin a modal transition from 
     <UINavigationController: 0x9190730> to <UINavigationController: 0x83a9dc0> 
     while a transition is already in progress. Wait for viewDidAppear/viewDidDisappear
     to know the current transition has completed'

 *** First throw call stack:
 (0x213d012 0x1e85e7e 0x213ce78 0x191bf35 0x10b8d05 0xeb74f3 0xeb7777 0x10be033f   
  0xeb77b7 0x104f0 0x1e996b0 0x18c6035 0x20c0f3f 0x20c096f 0x20e3734 0x20e2f44 
  0x20e2e1b 0x36437e3 0x3643668 0xdcd65c 0x1133f2 0x25c5)
  libc++abi.dylib: terminate called throwing an exception

BaseController.h:

 @class LoginViewController;
 @interface BaseController:UIViewController
 //...
 @end

BaseController.m

 @implement BaseController
 //...
 -(void)showLoginForm
 {
    UIViewController* loginx =(UIViewController*) [[LoginViewController alloc] init];
    UINavigationController* navx = [[UINavigationController alloc] initWithRootViewController:loginx];
    [navx.navigationBar setBackgroundImage:[UIImage imageNamed:@"title_bar.png"] forBarMetrics:UIBarMetricsDefault];
    //added
    //i can use @try to catch it       
    [self presentModalViewController:navx animated:YES];//<====it is error

    [loginx release];
    [navx release];
 }

LoginViewController:

 @interface LoginViewController:BaseController
 //...
 @end

otherViewController:
i will judge the user is login or not in this controller.if it is not login,i will call showLoginForm

  //@interface otherViewController:BaseController
  //......
 -(void)viewDidLoad
  {
     //make a thread to call isLogin
  }
 -(void)isLogin
  { 
      BOOL logined = YES;
      //......
      if(!logined)//i take this on MainThread,it has error also.
         [super showLoginForm];
  }

MainViewController:(it is the Main ViewController to show otherViewController)

 //@interface MainViewController:BaseController
  //......

 -(void)buttonAction
 {
     otherViewController* other = [[otherViewController alloc] init];
     UINavigationController* navigation = [[UINavigationController alloc] initWithRootViewController:other];
      [self presentModalViewController:navigation animated:YES];
     //release
  }

so ,Who knows how this is going on?

  • 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-14T07:39:40+00:00Added an answer on June 14, 2026 at 7:39 am

    In otherViewController.m you should move the code that calls the isLogin method to

    - (void)viewDidAppear:(BOOL)animated
    

    This will make sure that the transition for the presentation of the otherViewController will have finished when [self presentModalViewController:navx animated:YES]; is called.

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

Sidebar

Related Questions

my app is getting force close randomly. And every time error can not be
Hi every one I am getting the following error: The name 'ConfigurationManager' does not
I thought I had the assets pipeline figured out, but not any more. I
Every time i delete or destroy a Product it aways give me this error
I have an error message that occurs every time I use SQL Server 2012
I am getting an compilation error not a statement for the below code. Not
when passing parameters after index.php its showing 404 error .. its apache error not
I get the error changes not allowed when unmanaged debugging is enabled Actually I
I have strange error and not sure how to tackle it without wasting too
Why does eclipse break with the error Could not write file: M:\workspaces\eclipse\project.project. M:\workspaces\eclipse\project.project (Access

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.