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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:16:22+00:00 2026-05-26T14:16:22+00:00

I need advice on what to do. I have several applications on App store

  • 0

I need advice on what to do.

I have several applications on App store and they are all tested and fully functional for all previous iOS’s. But now when I update my device to iOS5 some of them began to crash unexpectedly on alert view item that ask for connecting to internet and show map with current location.

I am not that experienced in development so need some advice what to do? I supposed that with final version of iOS5 these things will be fixed by itself or not.

Thanks.

OK I have torned zombies and found method that makes problems.

    - (void) alertView: (UIAlertView*) alertView didDismissWithButtonIndex:(NSInteger)buttonIndex{
    NSLog(@" Button PRESSED: %d", buttonIndex);
    [alertView release];



    if (buttonIndex == 1) {
        BOOL noConnectionAvailable = NO;
        BOOL hasParentalLimit = NO;

        switch (lastSelectedItem.itemType) {
            case RestaurantItemTypeAddress : {
                if ([NetworkHelper connectedToNetwork] == YES) {
                    AddressController *mapController = [[AddressController alloc] initWithNibName:@"AddressController" bundle:nil restaurant:restaurant];
                    mapController.title = restaurant.res_title;
                    [self.navigationController pushViewController:mapController animated:YES];
                    [mapController release];
                } else 
                    noConnectionAvailable = YES;

                break;
            }
            case RestaurantItemTypeReservationEmail : {
                if ([NetworkHelper connectedToNetwork] == YES) {
                    MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
                    picker.mailComposeDelegate = self;

                    [picker setSubject:@"Reservation"];
                    // Set up recipients
                    NSArray *toRecipients = [NSArray arrayWithObject:lastSelectedItem.itemTextContent];             
                    [picker setToRecipients:toRecipients];

                    // Fill out the email body text
                    NSString *emailBody = @"";
                    [picker setMessageBody:emailBody isHTML:NO];

                    [self presentModalViewController:picker animated:YES];
                    [picker release];

                    [self.tableView deselectRowAtIndexPath:lastSelectedIndexPath animated:YES];
                } else 
                    noConnectionAvailable = YES;

                break;
            }
            case RestaurantItemTypeReservationForm : {
                if ([NetworkHelper connectedToNetwork] == YES) {
                    if ([NetworkHelper canOpenUrl:lastSelectedItem.itemTextContent]) {
                        WebViewController *wvc = [[WebViewController alloc] initWithNibName:@"WebViewController" bundle:nil urlStr:lastSelectedItem.itemTextContent];
                        wvc.title = restaurant.res_title;
                        [self.navigationController pushViewController:wvc animated:YES];
                        [wvc release];
                    } else hasParentalLimit = YES;
                } else
                    noConnectionAvailable = YES;

                break;
            }
            case RestaurantItemTypeWeb : {
                if ([NetworkHelper connectedToNetwork] == YES) {
                    if ([NetworkHelper canOpenUrl:lastSelectedItem.itemTextContent]) {
                        WebViewController *wvc = [[WebViewController alloc] initWithNibName:@"WebViewController" bundle:nil urlStr:lastSelectedItem.itemText];
                        wvc.title = restaurant.res_title;
                        [self.navigationController pushViewController:wvc animated:YES];
                        [wvc release];
                    } else hasParentalLimit = YES;
                } else
                    noConnectionAvailable = YES;

                break;
            }

        }

        if (noConnectionAvailable == YES) {
            UIAlertView* newAlert = [[UIAlertView alloc] initWithTitle:@"Jesolo Official Guide" 
                                                               message:@"Nessuna connessione disponibile." 
                                                              delegate:self 
                                                     cancelButtonTitle:@"OK"
                                                     otherButtonTitles:nil];
            [newAlert show]; 
        }

        if (hasParentalLimit == YES) {
            UIAlertView* newAlert = [[UIAlertView alloc] initWithTitle:@"Jesolo Official Guide" 
                                                               message:@"Navigazione su Web non consentita." 
                                                              delegate:self 
                                                     cancelButtonTitle:@"OK"
                                                     otherButtonTitles:nil];
            [newAlert show];

        }

    }

    [self.tableView deselectRowAtIndexPath:lastSelectedIndexPath animated:NO];

}

The log is different on iOS4 and iOS5.
On iOS5 it said:

 2011-11-04 16:26:28.550 Jesolo-EN[5693:207]  Button PRESSED: 1
2011-11-04 16:26:28.776 Jesolo-EN[5693:207] *** -[NSIndexPath isEqual:]: message sent to deallocated instance 0xe6b6fc0
sharedlibrary apply-load-rules all
Current language:  auto; currently objective-c
warning: Attempting to create USE_BLOCK_IN_FRAME variable with block that isn't in the frame.
(gdb) 

and on iOS4 said:

2011-11-04 16:28:08.087 Jesolo-EN[5859:207]  Button PRESSED: 1
2011-11-04 16:28:08.162 Jesolo-EN[5859:207] *** -[UIAlertView release]: message sent to deallocated instance 0x78c4940
sharedlibrary apply-load-rules all
Current language:  auto; currently objective-c
(gdb) 

I understand that i release data before i use them but when I run app without enabled zombies it work fine on iOS4 and on iOS5 it run one time and then 10 times crash.

  • 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-26T14:16:22+00:00Added an answer on May 26, 2026 at 2:16 pm

    I am finding that references to ivars that previously worked are now needing to be referenced as self.ivar. Perhaps your reference to managedObjectContext should instead be self.managedObjectContext?

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

Sidebar

Related Questions

I need some advice about the design on my app. I have several screens
I really need advice on how to do the following. I have tried several
I have several commits already and I need to undo the latest one but
I need advice on how to have my C# console application display text to
I'd need advice on following situation with Oracle/PostgreSQL: I have a db table with
I have been playing with Compact Framework lately and i need some advice. I
Experts - I need some advice in the following scenario. I have a configuration
Im starting with XNA and i need an advice about the following. I have
I am developing a WPF application, and I need your advice. I have to
I need some expect advice on how to handle the following:- I have a

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.