ios - Animate a UILabel size doesn't resize the StackView that contains it -
guys... have button , vertical stackview 2 labels inside it. when tap button want decrease/increase font size smoothly using animations.
the following code animation (within animation block), stackview doesn't resize self:
self.trackingstatus.transform = cgaffinetransformscale(self.trackingstatus.transform, 0.5, 0.5);
when use following code, stackview resize, don't think can animate property:
self.trackingstatus.font = self.trackingstatus.font.fontwithsize(11.0)
besides problem stackview cgaffinetransformscale makes text distorted. me 2 problems?
thanks lot!
Comments
Post a Comment