some useful util for ios