hi guys,
Just wanted to share this with all you guys as i suffered for a while don't want you guys to face the same problem.
i have iPhone 4s with ios 8.1.2 not jail broken was trying to reset the settings and after that it got stuck on the apple logo on boot.
here is how i fixed the problem.
1. Press Home and power button together wait until screen goes black.
2. attach the cable to your iPhone that is connected to your PC , as soon as you will connect the cable press the home button until it shows you the you are into recovery mode and would display your device on iTunes.
3.Try to restore your device with the latest firmware available.
(this is where things got changed)
when i tried it for the first time the firmware got installed and a pop up came up saying that my iPhone will restart and will be shown in iTunes. i did that and again my iPhone got stuck on the apple logo.
So i tried the whole process again and this time when the message pop up i removed the cable from the iPhone then i saw a different screen where it shows you the loading screen one more time and it got installed perfectly fine.It worked and got my home screen back.
Please don't try any weird third party software run on your iPhone when you can use iTunes.
Good Luck 🙂..