add ios auto action
update api.md
add length validate