TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jun 2017 |
Maintained by Christian Menschel.
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.
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])];
}
[TWYourStatusBar setCustomText:@"My custom Text"];
UIView *myView = [[UIView alloc] init];
[TWYourStatusBar setCustomView:myView];
Like always this library comes with an example project.