IPad shutting off/restarting Problem?

I Have the IPad Air, it isn't even a year old yet and it keeps shutting down by itself. when it turns back on it says mist enter code after iPad restarted. I'm not understanding why this is happening, I have the latest software update and I sync my device weekly. I want to solve this before my warranty is up at Christmas time because these are not pocket change priced devices, if anyone can please help or direct me where to go it would be greatly appreciated. Also this problem occurs at least 2-5 times a week!

iPad Air, iOS 8.1
Restore and setup as new if it continues take it to Apple for replacement before your one year is up


Sent from my iPhone using Tapatalk
Also happens on my iPad. But mine is older than yours (and has been accidentally dropped a few times) and not that often so I recommend taking it to Apple before your warranty is up.

Original thread: https://forums.imore.com/threads/ipad-shutting-off-restarting-problem.308842/