Welcome to the iMore Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 1 of 1
  1. Thread AuthorThread Author   #1  
    ravi124's Avatar
    iPhone Nanite

    1 Posts

    Default IPhone Drawing Question

    I am new to iphone sdk development.

    I created a circle with CGContextAddEllipseInRect() and It is working fine.
    I have some other view (ball) which I want to move inside the circle randomly (Random moving I did already).
    What I want is , If Ball view touches the circle line it has to move back.

    How can I know the whether the ball touches the circle line or not ?

    I searched a lot on the net but no luck ?

    Thank You,

Posting Permissions