Updated iOS adapter for ios7+