多くのデバッグの結果、このコードは高速列挙ループを無視し、やみくもに最後までジャンプしていると判断しました。
-(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
}
}
コンソールは「注釈列挙ループに入る」と「初期化」を出力しますが、「ループ内」を出力しないため、列挙ループを完全にバイパスしているように見えます。私は何が間違っているのですか?