views:

1239

answers:

3

Hi,

Does somebody have a good example of adding an overlay view (that covers the whole screen) with an activity indicator in the middle?

TIA

A: 

You can check out the MBProgressHUD framework

Claus Broch
I need a semi-transparent view that covers the whole screen + an activity indicator view in the middle of the screen. I didn't have much success with MSProgressHUD. Do you have example of that?
Nava Carmon
A: 

Solved. I created a semi-transparent view in IB with an activity indicator in the middle. I'm adding it to a tabController.selectedView. When done - removing it from there.

Nava Carmon
A: 

Nava Carmon, Could you please some sample code, how you achieved this?

Cheers

pettaiphone
I added 2 function in my app delegate - addIndicator and removeIndicator. addIndicator has a call [tabController.selectedView addSubview:myOverlayView] and removeIndicator has a call [tabController.selectedView removeSubview:myOverlayView] where myOverlayView is a view I created in IB and I bind it to my application delegate instance IBOutlet.
Nava Carmon
Thanks.. it worked as expected. Thanks for your help.
pettaiphone