How to use drawRect to draw in a existing view?

后端 未结 2 1383
梦毁少年i
梦毁少年i 2021-01-15 02:49

I\'m doing a GPS tracking app. Every time it receives a Latitude/Longitude it converts it to (x,y) coordinates and calls drawRect to draw a line between two (x,

2条回答
  •  隐瞒了意图╮
    2021-01-15 03:24

    What exactly to you mean by "old contents"? If you want to draw a line from your GPS data, you have to draw all points every time in the implementation of drawRect.

提交回复
热议问题