Base code for developing ios app.