문제

I'm doing this iOS app, where a user drags his finger over the screen of his iPhone along a circular path. During this action, the app plots little dots every other millimeter, effective creating a dotted line along the path. This works fine, as long as the user draws slowly. If he however drags his finger faster, the app is not able to draw a dot at every location on the path, leaving undesired gaps. What would be a good approach to compensate for this phenomenon? Thanks ahead

도움이 되었습니까?

다른 팁

Instead of drawing dots, draw lines (line starts at the last dot, and finishes at the new dot). This way if the user draws slowly you will get the same effect, but if he draws quickly you will not have gaps.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top