Is it possible to make either a jailbreak app/tweak or regular app that could display two times on the status bar on iPhone? Is such a thing possible and / or that's already developed?

I have a very special friend in another country and sometimes I forget what time it is there. Having to check the time on the clock app is a pain, especially when talking on the phone. I can't imagine a simple clock could use many system resources.

有帮助吗?

解决方案

Is it possible to make either a jailbreak app/tweak or regular app that could display two times on the status bar on iPhone?

Definitely, most likely using MobileSubstrate. What I can imagine as a solution is roughly:

  1. You hook into one of SpringBoard's initialization methods.
  2. You create an UILabel and add it to the status bar as a subview using the addSubview: method.
  3. You spawn a timer (use NSTimer, Grand Central Dispatch or whatever suits you) to update the text of the label every minute or so. You can use NSDate and perhaps NSLocale (I don't have the docs in front of me right now) to find out the local time of another country.

其他提示

enter image description here

This is is why Apple hasn't already done this. They have way to many icons that can appear up at once. Adding another time would take away precious space for these other icons. When I max out the bar it bumps other icons off, like right now I have music playing but the "Play Button" Icon got bumped off by the "Navigator" Icon.

Check out this site, it shows you most of the icons if they haven't added any more in the iOS 6.

https://sites.google.com/site/appleclubfhs/support/advice-and-articles/understanding-ios-menu-symbols

Your going to have to go with jailbreaking probably or hard programming, because the status bar is basically apart of the iPhone screen.

Best of luck!

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top