When a user clicks on a button a popup similar to this image appears. But when i am on a slow internet, the popup takes awhile to load. so until the popup loads i need the view in the background (where the button resides) to freeze (disable) and the user should not be able to click on any controls.
How can i disable the view/control ?
See -[UIView userInteractionEnabled]
http://developer.apple.com/library/ios/documentation/uikit/reference/uiview_class/uiview/uiview.html#//apple_ref/occ/instp/UIView/userInteractionEnabled
Set
view.userInteractionEnabled = NO;
On the parent view of the controls you'd like disabled.
Set the button's enabled property to NO - if you're using UIButton or a subclass thereof.
ex.
[button setEnabled:NO];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With