A smart surface with switchable wettability by an ionic liquid.