How to fix mt iphone 5 rear camera?

My Iphone 5 rear camera all of a sudden stopped working.
When I go into for example the camera app, It just shows a black screen, and the whole app freezes.
The same thing happens if I go into any other app like "snapchat".
I tried facetimeing, and the front camera works perfectly, but when I try to shift to the rear camera the same thing happens… I don't know why this is happening, it just happened out of nowhere today and I don't know what to do. I have tried rebooting, restoring and updating the software to the latest ios 7.
And nothing works…

You probably need to replace the rear camera. It seems like it went out. Did you try FaceTime app? Does your front cam work.

Sounds like your rear camera died. If the iPhone is under warranty, have it fixed.

  • Why is my iphone 5 rear camera suddenly blurry? So it's not that it's dirty, I've tried cleaning it. It was literally fine yesterday but all of a sudden it like won't focus. When I first switch to the rear cam, for a split second it's fine. Then it just goes to being unfocused. Is it just a problem with the auto focus? If so, and I have to take it into apple, will I have to pay for a solution? If so how much. P.s my front defacing camera is completely fine
  • Verizon iPhone 4 stuck on shutter after screen replacement? Only rear camera works? After replacing a cracked screen on a verizon iphone 4 the frontfacing camera is stuck on shutter, while the rear camera only works sometimes… I have tried checking the connections, as well resetting everything and even restoring. I have heard about possibly jumping something on the logic board but can't find where, a picture would be great.
  • My iphone 5 rear camera does not focus I have an iphone 5, i had it around 3 months and i just installed ios 7, and recently when i want to take a picture, it does not focus even when i tap on the screen, it only focuses on close objects, i tried tapping with my hand but nothing worked ( i had the problem before ios 7) any solutions?
  • My iPhone 4 rear camera is blurry? I have an iPhone 4 with really badly scratches on the rear camera. I have dropped my phone & totally cracked the back of it & I'm just wondering if I take it to the Apple store will they still replace the rear camera lens for $30 even though the back of my phone is cracked really bad.