sizeToFit ends up calling setFrame! So make sure you do not call them both in layoutSubviews. Its one or the other.

The following two tabs change content below.
Software Developer at realestate.com.au. Ardent rock climber, long distance runner and cricketer. Passionate about geometry, algorithms, persian poetry and test cricket. Loves to climb at the Sundeck Valley in Grampians, Australia.

Latest posts by Mujtaba Hussain (see all)