2012-10-02 36 views
-2

我想在獲取GPS位置時顯示活動HUD,但它不起作用。 hud不顯示。任何想法爲什麼它沒有顯示?它只是沒有顯示在startupdatinglocation上。其餘的通話都很好。MBProgressHUD和StartUpdateLocation

[HUD show:YES]; 
// start fetching data from a remote API 
[locationManager startUpdatingLocation]; 
+0

將其顯示在哪個視圖上,這是什麼意思? – user1688346

回答

2

我用MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.tabBarController.view animated:YES];來顯示我的。您需要通過將self.tabBarController.view更改爲self.viewself.navigationController.view