0

I have a popover and inside that popover is a camera button, I have got the camera working perfectly but at the top the battery symbol overlaps the camera, heres a screenshot below.

If anyone knows the answer, it would be appreciated.

enter image description here

  • A simple google search would have revealed a lot of answers to your problem. http://stackoverflow.com/questions/18760710/how-to-hide-status-bar-in-uiimagepickercontroller – Alex Catchpole Dec 06 '15 at 19:01
  • 1
    Yes, I did lots of looking on google and when through all of those. but nothing works. If i add the camera to a button on a normal VC it works fine, but when the button is inside a popover it doesnt seem to work correctly and I get that result. –  Dec 06 '15 at 19:16

1 Answers1

0

You can hide the status bar for that view so it won't overlap the camera button and look kind of ugly. You can use this code:

override func prefersStatusBarHidden() -> Bool {
    return true
}

Hope it helps :D

Pixele9
  • 422
  • 8
  • 25
  • 1
    Believe it or not, I just ran my app after the 20th time and its working properly! must of been some glitch! I'm sure your answer would of been right though! ;) –  Dec 06 '15 at 23:03