开发者

How to make a glowing bar effect in iOS like the one used when personal hotspot is on?

开发者 https://www.devze.com 2023-03-20 18:12 出处:网络
I\'d like to use this effect (not necessarily blue) when I\'m synching my app to my server. I\'ve searched the interwebs and apple dev forums but to no ava开发者_如何学Cil.

I'd like to use this effect (not necessarily blue) when I'm synching my app to my server. I've searched the interwebs and apple dev forums but to no ava开发者_如何学Cil.

How to make a glowing bar effect in iOS like the one used when personal hotspot is on?


Another way to do this (though it gives you very little control over how the double status bar looks) is to simulate an audio session. See the following question & answer: SBStatusBarController instance


There is no way to do this nicely as Apple does this. There are two ways to do at least something close to this:

  • You can try to set status bar style to UIStatusBarStyleBlackTranslucent and plea a little bit with background images under the status bar that will affect a color a little bit.
  • You can take a look through the code by following links — http://www.cocoabyss.com/uikit/custom-status-bar-ios/ and https://github.com/myell0w/MTStatusBarOverlay/ this two code samples implements an overlay above the status bar that fools a user. Achieved result maybe pretty close to what you show in your screenshot.
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号