2012-10-02 31 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