Chosen Solution

My iphone camera and flashlight does like once in a week not work and the only way i know to fix it is hard reset but i heard that its not good to do it often as it may ruin the battery or get to hot often. I still have warranty left but what if they say that the hard reset «fixed» it but it is actually a hard ware problem- like my warranty is going to go out before the big issues( battery etc.) like i mentioned would happen to my iphone, leaving me with a broken phone in the end and it has t been a year since i bought it. what should i do and what are youre guys opinion?

Not really sure what your concern is to be honest. If the phone is still under warranty then they should fix the phone. It’s the phone malfunctioning that is the root of resetting the phone. If you don’t take it in before the warranty runs out then you have no chance getting the phone fixed unless you do the repairs yourself. As I previously mentioned though I am not really sure I understand your concern about seeking warranty repair aid.