1
我一直在試圖添加一個UIActivityIndicatorView到谷歌地圖基於SDK的視圖,將引導加載引腳時動畫。地圖加載和引腳下降,但活動指示器被屏蔽,隱藏或不包含。我已經使用基於iOS的地圖實現的相同行爲取得了成功,但如果可能的話,寧願在Google地圖中執行此操作。這可能與線程行爲有關嗎?
謝謝, RESUIActivityIndicatorView隱藏在谷歌地圖sdk mapView
//view's .h
//this was created from dragging from the view to the .h file
@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *activityIndicator;
//view's .m
@synthesize activityIndicator;
...
//viewDidLoad calls a function that kicks off the animation
self.view = mapView;
[self.mapView setDelegate:self];
[self.activityIndicator startAnimating];
//later after the final pin is dropped the following is called
[self.activityIndicator stopAnimating];