嘿傢伙我試圖顯示地圖加載時的活動指標。mapViewWillStartLoadingMap不叫
- (void)mapViewWillStartLoadingMap:(MKMapView *)mapView
{
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES
NSLog(@"map started loading);
}
我試過使用上面的方法,但它永遠不會被調用。 每當我放大或縮小地圖瓦片將開始加載,但是這種方法不會被調用。
這是什麼語言? – 2011-06-02 01:25:57
@Mike:這是Objective-C。 @ user774150:你是否設置了地圖視圖的委託屬性? – Anna 2011-06-02 01:37:25
@interface FirstViewController:UIViewController 這是我的.h文件,這是正確的嗎? –
user774150
2011-06-02 05:46:58