Modern touchscreens like the one on an iPhone work by measuring the change in charge and voltage across a grid of hair-thin electrodes, aka capacitance.