The main graphics in iphone


I am learning basic graphics on iphone. I have the basics on how to draw. I want to know how we can put any graphic, like a circle, in a loop so that we can move it? as in JAVA, we use the repaint method.

+3
source share
2 answers

Depending on what you are trying to do, another solution might be to create an element that moves a separate UIView/ CALayerand animate its position using Core Animation (in this case, the loop and tweening are processed by the system). I highly recommend starting with getting started with graphics and animation .

+3
source

iPhone setNeedsDisplay NSTimer CADisplayLink. drawRect , / .

, . , , .

+2

Source: https://habr.com/ru/post/1796205/


All Articles