I noticed that the direction of this strange animation (which also happens with UIButtons) depends on the alignment selected in the "Control" section of the Attributes object inspector (in Interface Builder). All evening I worked on all the attributes and until I found a solution. :(
Edit : so, I had three UIButton in my view (and one UIPickerView ) where this strange behavior was running at the same time. I created a property related to ONE from UIButtons . Then, in the viewDidLoad this view controller, I added the following line:
_firstAffectedButton.titleLabel.autoresizingMask = UIViewAutoresizingNone;
And this is fixed for me, for all buttons and the collector!:? Strange, right?
Can someone explain why this works? I feel like I'm doing something stupid to fix it, but I donβt understand what it is.
Change 2 . It turns out there was a better and cleaner solution to this problem. See this post .
source share