我想使用动画增加标签的高度,但是动画会导致标签首先从中心扩展,然后跳到正确的y点。这看起来很糟糕。我希望只有底部扩展。
[UIView animateWithDuration:0.5 delay:0.0f options:UIViewAnimationOptionTransitionNone animations:^{
[self.about increaseHeightFromTopLeft:deltaHeight];
[self.scrollView increaseContentHeight];
} completion:nil];
- (void)increaseHeightFromTopLeft:(CGFloat ) increased {
CGRect newFrame = CGRectMake(self.originX, self.originY, self.frameWidth, self.frameHeight + increased);
self.frame = newFrame;
}