Simple demo of callback function in iOS