add ios sample code