File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 118118 */
119119- (void )showWhileExecuting : (SEL )method onTarget : (id )target withObject : (id )object animated : (bool )animated ;
120120
121+ /* *
122+ * Display the HUD
123+ */
124+ - (void ) show : (BOOL )animated ;
125+
126+ /* *
127+ * Hide the HUD, this still calls the hudWasHidden delegate.
128+ */
129+ - (void ) hide : (BOOL )animated ;
130+
121131@end
122132
123133
Original file line number Diff line number Diff line change @@ -181,6 +181,17 @@ - (void)layoutAndStyle {
181181
182182#pragma mark Showing and execution
183183
184+ - (void ) show : (BOOL )animated {
185+ [self layoutAndStyle ];
186+ [self setNeedsDisplay ];
187+
188+ [self showUsingAnimation: animated];
189+ }
190+
191+ - (void ) hide : (BOOL )animated {
192+ [self hideUsingAnimation: animated];
193+ }
194+
184195- (void )showWhileExecuting : (SEL )method onTarget : (id )target withObject : (id )object animated : (bool )animated {
185196
186197 [self layoutAndStyle ];
You can’t perform that action at this time.
0 commit comments