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

major refactoring for iOS 7+ & add demo project #93

Open
wants to merge 8 commits 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
11 changes: 6 additions & 5 deletions MTStatusBarOverlay.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// -------------------------------

#import <Foundation/Foundation.h>

#import <UIKit/UIKit.h>

//===========================================================
#pragma mark -
Expand Down Expand Up @@ -94,10 +94,6 @@ typedef enum MTMessageType {
@property (nonatomic, strong) UILabel *finishedLabel;
// if this flag is set to YES, neither activityIndicator nor finishedLabel are shown
@property (nonatomic, assign) BOOL hidesActivity;
// the image used when the Status Bar Style is Default
@property (nonatomic, strong) UIImage *defaultStatusBarImage;
// the image used when the Status Bar Style is Default and the Overlay is shrinked
@property (nonatomic, strong) UIImage *defaultStatusBarImageShrinked;
// detect if status bar is currently shrinked
@property (nonatomic, readonly, getter=isShrinked) BOOL shrinked;
// detect if detailView is currently hidden
Expand All @@ -116,7 +112,12 @@ typedef enum MTMessageType {
@property (nonatomic, copy) NSString *detailText;
// the delegate of the overlay
@property (nonatomic, unsafe_unretained) id<MTStatusBarOverlayDelegate> delegate;

// custom text and activity view color to override all UIStatusBarStyle and MTMessageType
@property(nonatomic, strong) UIColor *customTextColor;
// custom status bar overlay background color to override all UIStatusBarStyle and MTMessageType
@property(nonatomic, strong) UIColor *customBackgroundColor;

//===========================================================
#pragma mark -
#pragma mark Class Methods
Expand Down
370 changes: 55 additions & 315 deletions MTStatusBarOverlay.m

Large diffs are not rendered by default.

Loading