iOS:脉冲红色双高状态栏 [英] iOS: Pulsing red double-height status bar

查看:142
本文介绍了iOS:脉冲红色双高状态栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个录音应用程序,我想在应用程序正在录制时在我的应用程序顶部显示一个脉冲红色双高状态栏,同时用户仍在应用程序中 - 就像语音备忘录。我怎么做?
我可以得到它,以便当我在外面应用程序时出现双高红色状态栏,但不在应用程序内部时出现。任何提示?它实际上是否可能?

I am developing a recording app, and I'd like to show a pulsing red double-height status bar on top of my app while the app is recording, and while the user is still in the app - just like Voice Memos. How do I do that? I can get it so that the double-height red status bar appears when I am outside the app, but not while inside the app. Any hints? Is it actually possible at all?

推荐答案

首先回答最后一个问题:虽然我不知道是否有可能导致在其他应用程序中发生的机制可以应用于您自己的。

to answer the last question first: it is possible, though i don't know whether the mechanism for causing to happen in other apps can be applied to your own.

回答您的问题我该怎么做?任何提示?:提示将简单地隐藏应用程序内部的[UIApplication sharedApplication] statusBar,无论您是否处于记录模式,并创建自己的脉冲状态栏以模拟其他应用程序中呈现的状态栏。我有条不紊地在我的某个应用程序中隐藏状态栏,然后您可以在状态栏区域中显示您想要的任何内容。

to answer your next to questions "how do i do that? any hints?": one hint would be to simply hide the [UIApplication sharedApplication] statusBar inside of your app conditionally based up whether you are in record mode or not, and create your own pulsing status bar to simulate the one that is being presented in other apps. i hide the status bar conditionally in one of my apps, and you can then present whatever you want in the status bar area.

这篇关于iOS:脉冲红色双高状态栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆