Hey chandran96,
Thanks for using Apple Support Communities. Were you able to follow the steps in the guide you recently viewed? Specifically the steps under "If you want to try more steps on your own". Here's that link, just in case: If the camera or flash on your iPhone, iPad, or iPod touch isn't working - Apple Support
If you want to try more steps on your own
If you prefer, here are some more steps you can try on your own if the camera isn't working. You might still need to contact Apple Support after following these steps.
1. If the photo is blurry, clean the front and back camera lenses with a microfiber cloth. If you see dirt or debris inside the lens, damage to your iPhone near the camera, or if the camera lens appears to be misaligned or blocked, contact Apple Support to discuss service options.
2. If you see motion blur in low-light situations and you use a lens converter, metallic case, or a magnetic lens mount, try removing the accessory.
3. Restart your iPhone, iPad, or iPod touch.
4. Update your iPhone to the latest version of iOS.
5. Test the camera again by taking a photo. If your device has a front and rear camera, check if one or both aren't working. To switch cameras, tap the rotate button
.
If so, does the same behavior happen in all apps that use the camera? What about in all environments, such as light and dark, indoors and outdoors, etc.?
Keep us posted.
Take care!