add iOSHelper authored by holysin

add some iOS helper method