i dont think this a trick. a method to restore corrupted memory cards is by reformatting, be it using a computer or on the handphone.
a trick would be something like, how to format a memory card that can't be detected on a computer, and trying to format it on the phone causes some error. should you manage to come up with that trick, dont forget to share here Memory Card won't format