Setting and Getting X and  Y coordinates on Objective-C