A near-infrared ratiometric fluorescence probe base on spiropyran derivative for pH and its application in living cells.