Rahul Vyas
Rahul Vyas

Reputation: 28720

Customize UIStatusBar in iOS

Is there a way to customize the UIStatusBar class?

Upvotes: 2

Views: 4857

Answers (2)

nikolovski
nikolovski

Reputation: 4049

For an example what you can do with (or around) the status bar, look at this Github project: https://github.com/myell0w/MTStatusBarOverlay

I have used it in a project of mine, and it goes through app review just fine.

Upvotes: 4

Panayotis
Panayotis

Reputation: 1862

You can not customize the UIStatusBar. What you can do, is to put another UIView on top (with any customizations you want).

For example, something like:

MyView * myview = [[MyView alloc] initWithFrame:[[UIApplication sharedApplication] statusBarFrame]];
[[[UIApplication sharedApplication] keyWindow] addSubview:myview];

Upvotes: 1

Related Questions