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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:42:14+00:00 2026-05-26T07:42:14+00:00

I was developing an app for iOS 4.3 back in the summer on my

  • 0

I was developing an app for iOS 4.3 back in the summer on my iPhone 4 and things were working well. I put that project on the back burner while I was relocating jobs. With the release of iOS 5 I updated both my Xcode and iOS SDK to 4.2 and 5.0 respectively and I also bought a new iPod Touch running 5.0 for developing.

My app still works in the iPhone 4.3 Simulator (unfortunately I don’t have the iPhone 4 to test on anymore), but it crashes consistently on the iPhone 5.0 Simulator, as well as the iPod Touch.

The error happens when I try to load a subview and goes to main and says it crashes with a SIGABRT. Below is the segment of code where the crash occurs:

-(IBAction) showView:(id) sender{   
    if (self.tViewController == nil) {
        self.tViewController = [[TViewController alloc] init];
    }

    [self.navigationController pushViewController:tViewController animated:YES];
    [UIView beginAnimations:nil context:nil];
    [UIView setAnimationDuration:.75];
    [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft
                         forView:self.view
                         cache:YES];

    [self.view addSubview:tViewController.view];
    [UIView commitAnimations];
}

When I step through and reach this line:

[self.view addSubview:tViewController.view];

It crashes, and jumps to main.m:

int main(int argc, char *argv[])
{
    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    int retVal = UIApplicationMain(argc, argv, nil, nil);
    [pool release];
    return retVal;
}

And shows a ‘SIGABRT’ being received at this line:

int retVal = UIApplicationMain(argc, argv, nil, nil);

I’ve read that the error is coming from something being released twice. But in my ‘showView’ function, I don’t see where I could have done that. Unless the addSubview method does something I’m unaware of.

Also, why is this error happening in 5.0 and not 4.3?

Any help is appreciated.

  • 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-26T07:42:15+00:00Added an answer on May 26, 2026 at 7:42 am
    -(IBAction) showView:(id) sender{   
        if (self.tViewController == nil) {
            self.tViewController = [[TViewController alloc] init];
        }
    
        [self.navigationController pushViewController:tViewController animated:YES];
        [UIView beginAnimations:nil context:nil];
        [UIView setAnimationDuration:.75];
        [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft
                         forView:self.view
                         cache:YES];
    
        [self.view addSubview:tViewController.view];
        [UIView commitAnimations];
    }
    

    You have already push this view using [self.navigationController pushViewController:tViewController animated:YES] then why are you adding it to main view using [self.view addSubview:tViewController.view] remove this line of code.

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

Sidebar

Related Questions

While developing my app I have come to realize that the majority of my
I'm developing a first iPhone app for iOS 4.x/5.0 and have some confusions on
Back Story: I was approached to write an app, but iOS isn't something that
I am developing an iOS app. How can I know the current section that
I am developing an iPhone app in iOS 5. I am using UIImagePickerController to
I'm developing web-application (and also native iOS app) that uses images from different websites.
I'm developing an iPhone (and later Android) app that has real-time features, i.e. when
I'm developing a web app that apparently is having problems in iOS devices. The
I'm developing an IOS app that creates files on the device, e.g. with NSKeyedArchiver
I am developing an augmented reality iOS app (iPhone/iPad/iPod) and I would like to

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.