How to securely dispose of your old iPhone or iPad

If you’re getting rid of an old iPhone or iPad—selling it, trading it in, or giving it away—here’s what you need to do to make sure you don’t lose any data or run into other problems.