IPhone add an icon in the status bar (a la Battery Indicator)

I was wondering if it is possible to add an icon to the status bar of the iPhone, like a battery indicator and Wi-Fi. How can i do this?

Thanks.

+4
source share
4 answers

As previously reported, this is not possible with the SDK.

If you are working in a jailbroken environment, the icons on the status bar should be placed in /System/Library/CoreServices/SpringBoard.app with two versions: Default_NAME.png and FSO_NAME.png. The default value is used in a line of a line as a line in the form of a line, in FSO on the main screen or in applications that use a black status bar.

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

+11
source

Since even access to the status bar is directly impossible, I would not have thought so. You can indirectly set several status bar properties through UIApplication, the displayed icons are not one of them. Everything else is Apple sod.

+1
source

This is impossible to do. The UIApplication class gives you limited control over appearance. You might want to apply for a promotion with the Apple Bug Reporter .

+1
source

you cannot do it in sdk, plus an apple could come up to it if someone could do it. I know there is a way to do this with jailbroken tools, but I don’t think I should discuss this material here, as there are other sites that discuss it.

0
source

All Articles