__weak typeof(self) weakSelf = self;
[UIView animateWithDuration:0.2 animations:^{ weakSelf.progressLineWidth.constant=WIDTH; [weakSelf.view layoutIfNeeded];
} completion:^(BOOL finished) {
weakSelf.progressLine.hidden=YES; weakSelf.progressLineWidth.constant=0; }];
|