-(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
}
}
控制台打印“输入注释枚举循环”以及“初始化”,但它似乎完全绕过枚举循环,因为它不是“在循环中”打印。我做错了什么?
答案 0 :(得分:1)
您确定appDelegate.mines
不是空的吗?