user142019
user142019

Reputation:

iPhone add icon in status bar (a la Battery Indicator)

I was wondering if it is possible to add an icon to the iPhone status bar, much like the battery and wifi indicator. How can I do this?

Thanks.

Upvotes: 4

Views: 7710

Answers (4)

Yanik Magnan
Yanik Magnan

Reputation: 597

As previously reported, it's not possible to do so with the SDK.

If you're working for a jailbroken environment, status bar icons need to be placed within /System/Library/CoreServices/SpringBoard.app with two versions: Default_NAME.png and FSO_NAME.png. Default is used in the light menubar-like status bar, FSO on the home screen or apps that use the black status bar.

SBStatusBarController has a method called addStatusBarItem:, just call it with @"NAME" as your argument and it will handle the rest for you.

Upvotes: 11

Alex Reynolds
Alex Reynolds

Reputation: 96937

It is not possible to do this. The UIApplication class gives you some limited controls over appearance. You may want to file an enhancement request with Apple Bug Reporter.

Upvotes: 1

mrueg
mrueg

Reputation: 8225

Since it is not even possible to access the status bar directly, I wouldn't think so. You can only indirectly set a few of the status bar's properties through UIApplication, the displayed icons are not one of them. Everything else is Apple's turf.

Upvotes: 1

Matt S.
Matt S.

Reputation: 13753

you can't do it in the sdk, plus apple would pitch a hissy fit if somebody was able to do it. I know there's a way to do it with the jailbroken tools, but I don't think I should discuss that stuff here as there are other sites that discuss it

Upvotes: 0

Related Questions