I was in high school when the iPod touch was huge. They were definitely banned by the letter of the law, but so many kids had them that some teachers just gave up on enforcing the rule. There will always be some number of kids not paying attention or goofing off, and they don't have the energy to enforce the rule 100% of the time. Then, as smartphones became ubiquitous, the soft acceptance just snowballed.