Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用CGContext. 我已将线宽设置为35。现在,当调用touches begin时,我正在记录接触点。但它只给出一个点,我想要触摸内的所有点,因为我的线宽是35。如何在一次触摸内获得所有积分?
CGContext
You can't do that. You get that one magical point per touch, that's it. You best bet is to take it as the center of the touch.
请检查这个线程。我认为它回答了你的问题。
touchesMoved:withEvent