add iOS sample code.