Skip to content

Commit

Permalink
2.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
cezarywojcik committed Aug 25, 2015
1 parent 7d1890f commit 5c94909
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CWStatusBarNotification.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "CWStatusBarNotification"
s.version = "2.3.1"
s.version = "2.3.2"
s.summary = "A library that creates status bar notifications."
s.description = "CWStatusBarNotification is a library allows you to present a beautiful text-based notification in the status bar."
s.homepage = "https://github.com/cezarywojcik/CWStatusBarNotification"
Expand Down
6 changes: 5 additions & 1 deletion CWStatusBarNotification/CWStatusBarNotification.m
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,11 @@ - (CWStatusBarNotification *)init
self = [super init];
if (self) {
// set default
self.notificationLabelBackgroundColor = [[UIApplication sharedApplication] delegate].window.tintColor;
if ([[UIApplication sharedApplication] delegate].window != nil) {
self.notificationLabelBackgroundColor = [[UIApplication sharedApplication] delegate].window.tintColor;
} else {
self.notificationLabelBackgroundColor = [UIColor blackColor];
}
self.notificationLabelTextColor = [UIColor whiteColor];
self.notificationLabelFont = [UIFont systemFontOfSize:FONT_SIZE];
self.notificationLabelHeight = 0.0;
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Works for iPhone and iPad.

### CocoaPods

`pod 'CWStatusBarNotification', '~> 2.3.1'`
`pod 'CWStatusBarNotification', '~> 2.3.2'`

### Manual

Expand Down

0 comments on commit 5c94909

Please sign in to comment.