iOS code for OneClick Project