add ios6 support

add ios6 suppor
add two method