add support for ios6

add support for ios6