0

The app I'm writing depends on having a network connection (both to the internet in general and to a specific host). The app works completely offline but the user needs to know it's offline.

I am using Reachability to watch for changes to the connection.

I was thinking of using a traffic light type system...

  • Red = no connection to the internet.
  • Yellow = connection to the internet but no connection to the host.
  • Green = connection to host.

At the moment I am changing the tint colour of the UINavigationBar (until I can get something better). I was thinking of putting a coloured circle into the UIStatusBar to show red, yellow, green but I'm not sure if this is possible?

I don't want to hide anything on the status bar, just add my own graphic.

Is that possible? Could anyone explain how to do this? Or is there a better way of doing this that anyone could suggest?

4

1 回答 1

1

您不能向状态栏添加任何内容,但是您可能对这个项目感兴趣:https ://github.com/myell0w/MTStatusBarOverlay和这个问题及其答案:在 UIStatusBar(或在)上写一些文本

于 2013-01-17T15:28:00.893 回答