I am new to the iPad app development. I want to draw mathematical drawing like square,beziercurve,circle etc..But I want to draw it only by the user interaction. I created different textfields to enter the values..According to that the square is made.. For that I use core plot to plot,But it is very difficult to draw curve and all. Then I use core graphics. drawing is simple here.But i cannot moving the square according to user input. How can I pass values to drawrect method from the textfield? Any one please help me? Or please suggest any other method to satisfy this ? Please help me.