How to solve the flashlight and camera bug in iOS7?
If you have done a Recovery Mode firmware restore and you still can't use the flashlight or camera, you likely have a hardware problem. Make an appointment at the Genius Bar and see if they can identify the specific failure (no charge for a diagnostic at least in the U.S.).