我正在处理一个iPhone应用程序,在其中需要展示不同位置的兴趣点标记。我需要在第一个兴趣点上默认弹出提示框。我已经成功实现了iOS6的相关功能,但在iOS7中遇到了问题。以下是我的代码部分,它在iOS6中运行良好,但在iOS7中无法默认弹出提示框,没有显示任何错误。
以下是我的代码:
DDAnnotation *annotation2 = [[DDAnnotation alloc] initWithCoordinate:coordinates addressDictionary:nil] ;
annotation2.title = [[arrPOIs objectAtIndex:0] objectForKey:@"Name"];
annotation2.subtitle = [[arrPOIs objectAtIndex:0] objectForKey:@"AmbassadorTagline"];
annotation2.dictionaryData = [arrPOIs objectAtIndex:0];
annotation2.strCountNumber = [NSString stringWithFormat:@"1"];
[mapView selectAnnotation:annotation2 animated:YES];
[annotation2 release];
annotation2 = nil;
如果您对此有任何想法/建议,请指导我。