views:

1446

answers:

5

Hi all!

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.

A: 

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

Matt S.
What's wrong with discussing it here? As long as the answer make it clear it's only possible when jailbroken, I don't see an issue.
rpetrich
because chances are none of us have the answers he wants, if he goes to a site that "specializes" in just using the jailbroken tools then he has a better chance of getting an answer
Matt S.
Some members of the jailbroken scene browse Stack Overflow every once in a while; whenever I see something that could be solved in a jailbroken environment, I try to point it out.
Yanik Magnan
+1  A: 

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.

mrueg
+1  A: 

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.

Alex Reynolds
+8  A: 

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.

Yanik Magnan
Thanks for the explanation. I don't really make app store apps, I'm not going to pay $100/year for that.
Time Machine
A: 

Have you save the problem ? if you did ,how?

maxpy
This doesn't look like an answer...
Time Machine