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.
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 .
UIView
CALayer
iPhone setNeedsDisplay NSTimer CADisplayLink. drawRect , / .
, . , , .
Source: https://habr.com/ru/post/1796205/More articles:Running JUnit through Eclipse - eclipsePrevent spamming links through forms on rails - securitySort numbers (and numbers + letters) using sqlite - sortingEuclidean distance algorithm A * - algorithmIndy; How do I know the size of the required buffer? - delphiCan I record and play audio in an iPhone simulator? - iosHow to update cascade in JPA - javaFiltering data by Entity Framework through a loop - c #JRuby - stop script execution - jrubyGoogle Maps integration on a website - google-mapsAll Articles