iphone - MBProgressHUD or DSActivityView - tap to cancel -


I have come to both MBPRGURD and DSECTIVITY to show black round corner "loading" type overlay on an iPhone app.

I am just wondering if anyone knows how to expand one of these to find out one of the overlays, so that the action can be canceled.

I have seen at least one app there with "loading" indicator but with text "tap to cancel".

Thank you!

  - (zero) showHUDWithCancel: (NSString *) aMessage {self.HUD = [MBP Progress HUD show HUDDED: Self. Animated Animation: Yes]; Self.HUD.labelText = aMessage; Self.HUD.detailsLabelText = @ "Tap to Cancel"; [Self. Hood addGestureRecognizer: [[UITapGestureRecognizer alloc] initWithTarget: Self-action: @selector (hudWasCancelled)]]; } - (void) hudWasCancelled {[hide self.HUD: Yes]; }    

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -