Metal-ion exchange, small-molecule sensing, selective dye adsorption, and reversible iodine uptake of three coordination polymers constructed by a new resorcin[4]arene-based tetracarboxylate.