iOS implementation.