DGActivityIndicatorView icon indicating copy to clipboard operation
DGActivityIndicatorView copied to clipboard

你的示例程序的控制器中写错了一个地方

Open SPStore opened this issue 6 years ago • 0 comments

` for (int i = 0; i < activityTypes.count; i++) {

    DGActivityIndicatorView *activityIndicatorView = [[DGActivityIndicatorView alloc] initWithType:(DGActivityIndicatorAnimationType)[activityTypes[i] integerValue] tintColor:[UIColor whiteColor]];
    CGFloat width = self.view.bounds.size.width / 5.0f;
    CGFloat height = self.view.bounds.size.height / 7.0f;
    activityIndicatorView.frame = CGRectMake(width * (i % 7), height * (int)(i / 7), width, height);
    [self.view addSubview:activityIndicatorView];
    [activityIndicatorView startAnimating];

}`

宽度应该是除以7,不是除以5

SPStore avatar Nov 24 '17 04:11 SPStore