ios adaptation for the demo