 <p>The canonical way is to create an IBAction and hook it up to the touchUpInside event in InterfaceBuilder.app.</p> <p>Everything time a touchUpInside happens, your IBAction will be called.</p> <p>If you are creating programmatically, outside of IB, you can still hook up the IBAction.</p>