I want to draw a circle in my application.
Actually, there is a timer for 20 seconds and I have to draw a circle with red and green colors, according to the remaining time.
Please help me if you have code or similar examples.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To draw a circle you may use (in your
drawRectmethod)To simulate the timer you may consider use
CGContextAddLineToPointandCGContextMoveToPointto draw lines andCGContextSetFillColorto change the current fill color.Check CGContext Reference