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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:12:16+00:00 2026-05-27T13:12:16+00:00

My app uses ARC and I’ve got into trouble with some third party software

  • 0

My app uses ARC and I’ve got into trouble with some third party software that doesn’t use it.
I can get over that by setting -fno-objc-arc in the build phase. However I am left with a problem where one ViewController crashes the pp because it gets called twice.

I will try to explain…

In my own TableView I select a line which bring on Urban Airship’s StoreFront.
It comes on as a Modal window, as far as I can see.
It’s a TableView that directly get pointed to the DetailView of the item that I selected in my TableView. I buy the item and it starts downloading.
I have a delegate from Urban Airship that tells me in my TableView when the item is safely down on the phone. I [self dismissModalViewControllerAnimated:YES]; the UAStore at the end of that delegate in my own TableView and get my TableView back.
All working just fine.

The problem occurs when I select a new product to buy.
I get ll the way to the UA DetailView, but once I hit the “buy” button the app crashes.

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Pushing the same view controller instance more than once is not supported (<UAProductDetailViewController: 0x3a35e0>)'

To me it looks like the UAProductDetailViewController is not released. Urban Airship’s implementation files are in a library, so they are not available to tweak.
I’ve tried many different things to get out of here.

    [[DataModel sharedModel] saveContext]; 
    [[self tableView] reloadData]; 

  //  LessonListViewController *lessonListVC = [[LessonListViewController alloc] initWithNibName:@"LessonListView" bundle:nil];
    UserData *UserData_Array = [dm.UserData_Array objectAtIndex:0];
 //   lessonListVC.courseID = UserData_Array.current_levelName;
 //   lessonListVC.lessonsArray = UserData_Array.current_level;
    NSLog(@"Current level name:%@",UserData_Array.current_levelName);
    NSLog(@"Lessons array:%@",UserData_Array.current_level);

  //  lessonListVC.navigationItem.hidesBackButton = YES;

   // [self.navigationController popToViewController:lessonListVC animated:YES];
   // [UAProductDetailViewController removeFromParentViewController];
    self.tabBarController.tabBar.hidden = NO;
    [self dismissModalViewControllerAnimated:YES];

But nothing has worked so far.
Hopefully someone can follow my somewhat mixed up description and save by hair.

** A NSLog call in the UADetailViews’s viewDidUnload does not get called when I’m back to my own TableView.

  • 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-27T13:12:16+00:00Added an answer on May 27, 2026 at 1:12 pm

    It would be helpful to see the code block where you dismiss the modal view controller with:

    [self dismissModalViewControllerAnimated:YES];
    

    That doesn’t look quite right to me, since if you’re calling it in a delegate method implementation, “self” would refer to your object. If you’re receiving a reference to their view controller through the delegate method, try using that to dismiss it. If you try to dismiss it from your own view controller, and you’re running iOS 5.0, you need to be referencing using presentingViewController rather than parentViewController, e.g.:

    [[self presentingViewController] dismissModalViewControllerAnimated:YES];
    
    • 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 which uses ARC. I don't use InterfaceBuilder, all UI is
My app uses NSTimer and it appears that NSTimer doesn't fire when the iPhone
Hello! I tried to use a delegate in my app. My project uses ARC
Our app uses a component that requires a license file in the directory with
Background: Our web app uses the jquery.constrain.js plugin to handle data entry in some
I'm writing an app in an ARC environment, and I'm trying to use a
My Rails app uses the jquery.post() method to send some data from a clickable
our delphi win32 app uses special characters like micro and copyright. we mostly use
My app, which uses ARC, does the following: Uploads a picture taken by the
I am writing an app that uses the UITabBarController at the bottom. Hierarchy -

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.