add ios6 support
add two method