I have observed a very strange behavior regarding Autolayout in the Today Widget I just created for my app. Trying to get to the root of the problem I ended up creating a pl
In some of Apple's stock UIView
subclasses, they are instantiated with a size of zero. You need to configure your NSLayoutConstraint
s so that they can properly react to this initial size. In the past, I've made top or bottom constraints an inequality so that the rest of the constraints may size themselves correctly and not break the layout.
Ex: Make your bottom constraint (
) a LessThanOrEqualTo
with a constant
value of 8.0
.