I have subclassed UIView, but I need to prevent the frame from changing, so I tried overriding the setFrame: method and just ignoring the value passed, and creating my own CGRect base on self.superview and passing it to [super setFrame:
How can I make the UIView’s frame unchangeable? (from within the subclass)
Step1: Override setFrame to do nothing.
Step 2: Move your semi-static frame setting into your overridden version of
willMoveToSuperview:to get a valid superview reference.