iPhone camera won't focus
I've recently been having trouble with my iPhone 5 camera not focusing. When I open the camera app, the camera is focused for a split second, but then it gets out of focus and stays out of focus. I've tried touching the screen to make it focus and it doesn't work.
I read online that tapping the phone on different parts helps but I've tried that and it didn't do anything (maybe I'm not hitting hard enough?). I brought it to the apple store and they said they can't do anything to fix it and I'm out of warranty and don't want to pay 250+ bucks for a new phone.
I then took it to an iPhone repair shop and they replaced the actual camera and the problem still remained. So I guess it's a software issue? I have hope that it can be fixed somehow because it does focus for that split second but I don't know what to do.
Thanks for any help!