Skip to content

Commit

Permalink
2.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
cezarywojcik committed May 12, 2015
1 parent 975ca58 commit b87af9f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 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.2.5"
s.version = "2.2.6"
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: 6 additions & 0 deletions CWStatusBarNotification/CWStatusBarNotification.m
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ - (NSInteger)supportedInterfaceOrientations
return self._cwViewControllerSupportedInterfaceOrientation;
}

- (BOOL)prefersStatusBarHidden
{
CGFloat statusBarHeight = [[UIApplication sharedApplication] statusBarFrame].size.height;
return !(statusBarHeight > 0);
}

@end

# pragma mark - dispatch after with cancellation
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Works for iPhone and iPad.

### CocoaPods

`pod 'CWStatusBarNotification', '~> 2.2.5'`
`pod 'CWStatusBarNotification', '~> 2.2.6'`

### Manual

Expand Down

0 comments on commit b87af9f

Please sign in to comment.