Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created new 'updateOverlayWithLabel' method to update only the label … #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions TAOverlay/TAOverlay.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,13 @@ typedef NS_OPTIONS(NSInteger, TAOverlayOptions)

#pragma mark Show/Hide Methods

/**
* Updates the current overlay's label text, without reseting the animation. (Good to display a progression!)
*
* @param status The text to display on the overlay. If the value is 'nil', overlay is shown without a label.
*/
+ (void)updateOverlayWithLabel:(NSString *)status;

/**
* Shows an overlay with a label and a predefined icon.
*
Expand Down
6 changes: 6 additions & 0 deletions TAOverlay/TAOverlay.m
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ + (TAOverlay *)shared

#pragma mark Show/Hide Methods

+ (void)updateOverlayWithLabel:(NSString *)status{
[self shared].didSetOverlayLabelFont = NO;
[self shared].didSetOverlayLabelText = YES;
[self shared].overlayText = status;
}

+ (void)showOverlayWithLabel:(NSString *)status Options:(TAOverlayOptions)options{

[self shared].didSetOverlayLabelFont = NO;
Expand Down