kevin Mendoza
kevin Mendoza

Reputation: 1221

Application not entering Fast Enumeration loop

after much debugging, I have determined that this code is ignoring the fast enumeration loop and blindly jumping to the end:

-(void)loadOutAnnotations
{
    NSLog(@"entering Annotation enumeration Loop");

    iProspectFresno_LiteAppDelegate *appDelegate =(iProspectFresno_LiteAppDelegate *)[[UIApplication sharedApplication] delegate];

    FlipsideViewController *viewController = (FlipsideViewController *)[[UIApplication sharedApplication] delegate];

    CLLocationCoordinate2D workingCoordinate;
    NSLog(@"initializing");
    NSMutableArray* mines = [[NSMutableArray alloc] initWithArray(NSMutableArray *)appDelegate.mines];
    for (id mine in mines)
    {
        NSLog(@"in the loop");
        //rest of loop code
   }
}

the console prints "entering Annotation enumeration Loop" as well as the "initializing," but it seems to bypass the enumeration loop completely, as it is not printing "in the loop." what am I doing wrong?

Upvotes: 0

Views: 210

Answers (1)

kennytm
kennytm

Reputation: 523224

Are you sure appDelegate.mines is not empty?

Upvotes: 1

Related Questions