wow just had a post removed because it wasnt technical and constructive. So I'll stick to the facts.
ios7 introduced software that now requires charge cables to handshake with the device. This handshake comes in the form of an encrypted key stored in the cable/charge/accessory.
If the handshake fails then the accessory is rejected and all features/charging are disabled.
There are seveal ways to fix this.
1 - buy certified apple products
2 - turn off the device and while the logo is spinning plug it in to charge, this prevents auto power on from turning on the device and again blocking the usb cable from charging the phone
3 - use a device that does not require hardware/software blocked charge devices and accessories.
If you send any official certified products back they will be replaced.
Personally I have bought a samsung s5 and my company has removed over 600 apple devices because of this issue effecting remote emergency response workers.
I hope this reply has been technical enough and is constructive in its response on how to avoid problems with using accessories that no longer work due to softwear errors/glitches on handsets and in particular the Apple iPhone with ligntning connectors
From a technical standpoint, I was surprised to learn when taking in 30-40 accessories and cables that the genius bar informed me I must purchase certified accessories for the 600 phones which I had no idea how to tell which were certified and which wernt. This came to the sum of 2 cables for 600 phones, or $30,000 AUD. It was cheaper for us to simply remove the faulty devices from our support line given this may happen in the future and the issue has still not been resolved after months of complaints by people on these forums.