Can you put spyware on an iPhone remotely?

The reason I ask is because, somehow my Father installed spyware on my iphone 6 that allowed my Parents to see my text messages. I don't know how He did this since I keep good track of where my phone is, and it never went missing. Also, how would He bypass the passcode lock to do it? I have since updated IOS disabling it hopefully!

No, you can't. With that said, there are tons of parental controls built into the iPhone, one of which is the ability to read your child's texts. Absolutely nothing you can do about it.

Update: LOL, you downvoted me because I'm smarter than you? LOL, what an idjit.

Dave is entirely correct. I used the iPhone for my kids for just that reason. No better way to monitor their activities.