How to display a red status bar when you press the home button?

How do I display a red status bar when I click the Home button when my transcoding application is doing some recording?

I checked this question: How to hide the red bar under iOS status when recording?

However, I use Core Audio and advanced audio files for recording. I can not find any proper documentation for the software to do this. Any help or pointers would be appreciated.

Red status bar

+4
source share
2 answers

I think that

red status bar when you press the home button

you ask if you can set the status bar color to red when your application is in the background.

A red status bar is an indication that the application is recording audio , and it is being installed by the system. There is nothing in sdk to help us change the color of the status bar when your application is in the background.

See this official forum (login required) where this question is addressed and the guy who answers it is an Apple employee.

EDIT:

If your application is trying to record in the background, but your problem is that the red color does not appear on the status bar, then one of the reasons may be because your audio recording session is terminated / paused. Try and register for the completion handler for your entry and see if it fires earlier than you expect it to fire.

+2
source

It is personal but works.

[[[UIApplication sharedApplication] statusBar] setTintColor:[UIColor redColor] withDuration:3.2] 

Of course, that will be rejected in the store.

Ideally, you can simply add a category to the UIStatusBar and override drawRect: which I used to tint my navigation strings, but it looks like this class is also private.

There are probably a few hackers who might hurt you, but you still run the risk of throwing your application away later.

Perhaps the apple will open it later, as it was with navigation and tabs?

-1
source

All Articles