I've a custom tableview cell with a right aligned button having following constraints:
Now when I launch my view controller, this edit icon image fly and settle down at the correct location. How can I remove that animation.
NOTE: This problem is in visible only in certain cells. I've also tried deleting and re-adding the component as well.
Fixed the problem by updating the frame and then calling the [self layoutIfNeeded];
Nothing will work if you miss [self layoutIfNeeded];
function call after updating your frames.
While working with autolayout, you should always call [self layoutIfNeeded];
after updating the frame.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With