修改代码如下 [_queue addOperationWithBlock:^{ [NSThread sleepForTimeInterval:1 / 180.0]; dispatch_async(dispatch_get_main_queue(), ^{ [UIScreen mainScreen].brightness = brightness + i * step; }); }];