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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:09:31+00:00 2026-05-27T17:09:31+00:00

When I enable (uncomment) this line of code I get a SIGABRT crash –

  • 0

When I enable (uncomment) this line of code I get a SIGABRT crash – which is strange, to me, because I have never had this issue before.

cell.textLabel.text = [[annotations objectAtIndex:indexPath.row] title];

The error I get is:

2011-12-28 14:03:00.118 MapWithTableModalView-001[2006:11603] Localized name database is not present
2011-12-28 14:03:01.110 MapWithTableModalView-001[2006:11603] * Terminating app due to uncaught exception ‘NSRangeException’, reason: ‘* -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array’

The project produces no errors or warnings.

The project is based on 2 UIViewControllers that slide on top of each other via a button – ModalViewContoller. When I press the button, the crash happens.

Just adding the code here – it is part of a tutorial, but I still want to get it:-) I know this does not look like an ordinary array, but the data is set like this in the project. Once I figure this out I want to set it in a Plist.

-(void)loadOurAnnotations
    {
CLLocationCoordinate2D workingCoordinate;


    #pragma mark - Apple Stores
workingCoordinate.latitude = 51.514298;
workingCoordinate.longitude = -73.973034;
iCodeBlogAnnotation *appleStore1 = [[iCodeBlogAnnotation alloc]     initWithCoordinate:workingCoordinate];
    [appleStore1 setTitle:@"Apple Store 5th Ave."];
[appleStore1 setSubtitle:@"Apple's Flagship Store"];
[appleStore1 setAnnotationType:iCodeBlogAnnotationTypeApple];

[viewController.mapView addAnnotation:appleStore1];

workingCoordinate.latitude = 51.514298;
workingCoordinate.longitude = -0.141949;
iCodeBlogAnnotation *appleStore2 = [[iCodeBlogAnnotation alloc] initWithCoordinate:workingCoordinate];
[appleStore2 setTitle:@"Apple Store St. Regent"];
[appleStore2 setSubtitle:@"London England"];
[appleStore2 setAnnotationType:iCodeBlogAnnotationTypeApple];

[viewController.mapView addAnnotation:appleStore2];



     }

If you would like me to post any additional code, I would be happy to, but I am not sure where to look anymore and hence don’t really know which bit to post to be helpful.

-Jeff

  • 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-27T17:09:32+00:00Added an answer on May 27, 2026 at 5:09 pm

    Your annotations array is empty (has zero elements).

    Looking at your -loadOurAnnotations method, you never actually seem to set the annotations array that you’re reading. Try updating that line to something like below and see if that helps:

    // I'm not sure where viewController comes from but I'll assume it's a method on this
    // class and that it's the same class that defines -loadOurAnnotations. If it's not,
    // update this appropriately to get access to the mapView to which you've added
    // the annotations
    cell.textLabel.text = [[[[viewController mapView] annotations] objectAtIndex:indexPath.row] title];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

To enable cURL in PHP I uncomment this line extension=php_curl.dll But cURL did not
Is this possible? I had troubles with SVN clients not being able to access
I had at some point an urls file that looked like that: # Uncomment
I've never used PHP or MySQL before, so this is all new to me.
I have form autocomplete code that executes when value changes in one textbox. It
Basically, I get this error in my scripts: Fatal error: Call to undefined function
I encountered some very weird behaviour which I think is a bug, but I
I keep getting this error on my views. I can't work it out as
My website, which was working before, suddenly started breaking with the error ImproperlyConfigured at
I have installed php successfully on a Windows 7 machine but I can not

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.