As part of the animation, I have an idea that I want to delve into the hierarchy of representations. (I previously moved it to the top of the view hierarchy to perform an animation that appears on top of other user interface elements.) I use this code, which does the right thing.
CGRect rect = self.profileImage.frame; UIView *sv = self.profileImage.superview; [self.scrollview addSubview:self.profileImage]; rect = [self.scrollview convertRect:rect fromView:sv]; self.profileImage.frame = rect;
However, when I do this, the view flickers. Any ideas how to avoid flickering?
source share