Apple used ios7 to enforce usage of Apple accredited products for charging. If they made decent leads in the first place, one wouldm't mind, but the leads are flimsy and break unless used by someone who is extremely careful about not stressing the lead.
If the phone is ready to use, don't switch it off but connect the charging lead to the phone with the power on - then switch the phone off. That way ios cannot 'read' whether the part is approved or not and the phone charges. If your battery has 'died' (run out of power) connect the charging lead to the phone with the power on and when the phone switches on after the minimum charging level, switch it off because that way the charging will resume. If you don't turn the phone off it will remain on, but not charging, until it uses up the minimum charging level and then it will 'die' again.
To say all of this is annoying is to put it mildly. Apple is a greedy conglomerate that seeks to extract as much cash as it can from its loyal customers. Lighning to USB cables cost £15 ($25) from the Apple Store in the UK but can be bought on Amazon for a tenth of that price, so one assumes that the Amazon products are bootlegged - I wonder why there are so many bootleg Apple products ;o) ?
Next time round I will likely go for an android because I can't stand stuff like this. The hassle of simply discovering what Apple surreptitiously did has taken me countless hours because I assumed that it was the chager etc at first. Apple should be more open and respectful with its customers.