Latest 1.0.3
Homepage https://github.com/tapwork/YourStatusBar
License MIT
Platforms ios 7.0
Authors

Customize the statusBar of your iOS app with any text or UIView

Build Status
CocoaPods Version
YourStatusBar
[CocoaPods Platform]()
Carthage Compatible
Twitter

You always asked yourself why you can’t change the text in the iOS statusBar for debug reasons? Or custom UIViews? YourStatusBar tweaks the iOS statusBar to add custom text or views.
In big projects I often have the problem to find the right UIViewController class. So I wanted to see the current class name in the statusBar. That is actually the reason why I built this library here.

Features

  • Set your text to the iOS statusBar
  • Add your custom UIView to the statusBar

Usage

Please make sure that you use YourStatusBar only for DEBUG purposes. Not in production mode, because UIStatusBarWindow is private API.
You could use YourStatusBar to display the current class like

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];

    [TWYourStatusBar setCustomText:NSStringFromClass([self class])];
}

Installation

CocoaPods

Add it to your Podfile and run pod install

pod 'YourStatusBar'

And use #import <YourStatusBar/TWYourStatusBar.h>

Carthage

You can use Carthage.
Specify in Cartfile:

github "tapwork/YourStatusBar"

Change text

[TWYourStatusBar setCustomText:@"My custom Text"];

Use custom UIView

UIView *myView = [[UIView alloc] init];
[TWYourStatusBar setCustomView:myView];

Example project

Like always this library comes with an example project.

References

Thanks

Author

License

MIT

Latest podspec

{
    "name": "YourStatusBar",
    "version": "1.0.3",
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "summary": "Customize the iOS statusBar with your text or UIView",
    "homepage": "https://github.com/tapwork/YourStatusBar",
    "social_media_url": "https://twitter.com/cmenschel",
    "authors": {
        "Christian Menschel": "[email protected]"
    },
    "source": {
        "git": "https://github.com/tapwork/YourStatusBar.git",
        "tag": "1.0.3"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "Classes/**.{h,m}"
}

Pin It on Pinterest

Share This