2013-07-07 23 views
1

我一直在試圖添加一個UIActivityIndi​​catorView到谷歌地圖基於SDK的視圖,將引導加載引腳時動畫。地圖加載和引腳下降,但活動指示器被屏蔽,隱藏或不包含。我已經使用基於iOS的地圖實現的相同行爲取得了成功,但如果可能的話,寧願在Google地圖中執行此操作。這可能與線程行爲有關嗎?
謝謝, RESUIActivityIndi​​catorView隱藏在谷歌地圖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]; 

回答

0

如果使用的標準編碼從谷歌添加地圖視圖,你可能會覆蓋根視圖,這將具有在其上的活動的指標。

你可以發佈你用來添加地圖視圖的代碼嗎?