From 7eb79da4f080eaa6d184a91e8be6281ddbe827c0 Mon Sep 17 00:00:00 2001 From: Cezary Wojcik Date: Thu, 27 Aug 2015 09:54:57 -0700 Subject: [PATCH] 2.3.3 --- CWStatusBarNotification.podspec | 2 +- CWStatusBarNotification/CWStatusBarNotification.m | 2 +- README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CWStatusBarNotification.podspec b/CWStatusBarNotification.podspec index 6250e0f..936f028 100644 --- a/CWStatusBarNotification.podspec +++ b/CWStatusBarNotification.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "CWStatusBarNotification" - s.version = "2.3.2" + s.version = "2.3.3" 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" diff --git a/CWStatusBarNotification/CWStatusBarNotification.m b/CWStatusBarNotification/CWStatusBarNotification.m index c73b05c..2145736 100644 --- a/CWStatusBarNotification/CWStatusBarNotification.m +++ b/CWStatusBarNotification/CWStatusBarNotification.m @@ -194,7 +194,7 @@ - (CWStatusBarNotification *)init self = [super init]; if (self) { // set default - if ([[UIApplication sharedApplication] delegate].window != nil) { + if ([[[UIApplication sharedApplication] delegate] respondsToSelector:@selector(window)]) { self.notificationLabelBackgroundColor = [[UIApplication sharedApplication] delegate].window.tintColor; } else { self.notificationLabelBackgroundColor = [UIColor blackColor]; diff --git a/README.md b/README.md index 6bb182f..0e31d9a 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Works for iPhone and iPad. ### CocoaPods -`pod 'CWStatusBarNotification', '~> 2.3.2'` +`pod 'CWStatusBarNotification', '~> 2.3.3'` ### Manual