Fix iOS7 deprecated warning.