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.
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.
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
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.
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.
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.