I used AVAudioRecorder to record the voice.I found that a red bar (just like the bar when you calling in background) will appear under the status bar sometimes when I alloc it and begin to record.How to hide it?
Asked
Active
Viewed 8,641 times
3
-
1Try hiding the status bar: http://stackoverflow.com/questions/4264072/how-to-hide-status-bar-in-iphone-application – Simon Woodside Nov 15 '12 at 04:28
-
It's a red bar under the status but not the status bar. – Tab Nov 15 '12 at 05:06
1 Answers
2
You can't do that. Every app, including the stock Voice Memos app, will have the bar when it uses the microphone.

Scott Berrevoets
- 16,921
- 6
- 59
- 80
-
But it will appear and then disappear immediately, the view of my App will be shocked,how to avoid this? – Tab Nov 15 '12 at 07:02
-
Because it takes a moment for the system to realize that recording stopped (which it automatically does when your app is suspended). – Scott Berrevoets Nov 15 '12 at 07:04