update api to ios7