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

为什么90(TotalScreenTime)代表整个屏幕代表的时间 #228

Open
tianyang828 opened this issue Apr 22, 2020 · 0 comments
Open

Comments

@tianyang828
Copy link

#pragma mark - 用来控制移动过程中计算手指划过的时间
-(float)moveProgressControllWithTempPoint:(CGPoint)tempPoint{
//90代表整个屏幕代表的时间
float tempValue = self.touchBeginValue + TotalScreenTime * ((tempPoint.x - self.touchBeginPoint.x)/([UIScreen mainScreen].bounds.size.width));
if (tempValue > [self duration]) {
tempValue = [self duration];
}else if (tempValue < 0){
tempValue = 0.0f;
}
return tempValue;
}

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