Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请教代码问题 #435

Open
FlyOceanFish opened this issue Apr 11, 2018 · 0 comments
Open

请教代码问题 #435

FlyOceanFish opened this issue Apr 11, 2018 · 0 comments

Comments

@FlyOceanFish
Copy link

FlyOceanFish commented Apr 11, 2018

PNLineChart中
image

CATransaction 事务是不需要的是吧?还有UIGraphicsBeginImageContext在这个代码当中的作用是什么呢?
image

还有这个circleCenter其实就是x、y的
image

CGContextStrokePath其实调用一次就行了,没必要每次都得调用一次
CGContextRef ctx = UIGraphicsGetCurrentContext(); UIGraphicsPopContext(); UIGraphicsPushContext(ctx);
drawRect中如果不写pop和push会有什么问题吗?我看了资料说drawRect方法下是不用push的,不知作者在这调用有何用处呢?

@FlyOceanFish FlyOceanFish changed the title 代签请教问题 请教代码问题 Apr 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant