-1

Hi I am creating a application in which I have to create different type of stretchable views like oval , circular, octal by touching its corners.

I have found some Similar question but its works only for square and only in length and width.

Similar stackoverflow question

Some thing like various option present in to select eyes, lips mouth in modifaces applications... I have to select area like that.

Community
  • 1
  • 1
Nik's
  • 690
  • 1
  • 10
  • 27
  • 3
    [What have you tried?](http://mattgemmell.com/2008/12/08/what-have-you-tried/) – Pfitz May 07 '13 at 09:40
  • I don't have any idea from where should I start. Just tried On touchstart get the current point of the view and on touchEnd Replace the view points with the Endpoint... – Nik's May 07 '13 at 09:48
  • Why this question is downvote ??? Atleast give a comment for that, So that I can improve my question in future... – Nik's May 07 '13 at 10:58
  • @Apple I would like suggest you please whenever you need any help from SO community, just show your efforts before asking, like what you have tried so far and try to post relevant code here, so no one will give you donwvote etc. and even you will get more help, btw now your question is again normal 1-1 = 0 vote, **but don't forget to put the code where you need help** – swiftBoy May 07 '13 at 12:01
  • @RDC thanks... But in this question I didn't know from where should I start and what ever I didn't get the success even though I don't know I am on right track or not. – Nik's May 07 '13 at 12:29

1 Answers1

1

Simple solution would be drawing necessary shapes (for example: http://www.edumobile.org/iphone/ipad-development/draw-circle-triangle-and-rectangle-in-iphone/)

And upon touchstart/touchMovement - simply redraw it using new coordinates.

You will have to think a smart way to know - which shape side should be changed.

For example - imagine - you programmatically draw a elipse in the middle of screen.

Then You touch somewhere at the right side near elipse line. You calculate - which elipse side is closer to touched point, and then - when moving finger - simply redraw each time - so that only necessary side would change position.

Guntis Treulands
  • 4,764
  • 2
  • 50
  • 72