It was the same with iOS 6.
I guess it sometimes takes time for constraints to "settle down" and not be ambiguous. According to WWDC 2012 video "Best Practices for Mastering Auto Layout," ambiguity can be temporarily tolerated (unlike unsatisfiability, which immediately raises an exception).
If you want to prove to yourself that your constraints are not remaining ambiguous, then create a wrapper for [[UIWindow keyWindow] _autolayoutTrace] and call it after a short delay:
- (void)viewDidAppear:animated
{
[super viewDidAppear:animated];
[self performSelector:@selector(wrapperForLoggingConstraints) withObject:nil afterDelay:.3];
}
- (void)wrapperForLoggingConstraints
{
[[UIWindow keyWindow] _autolayoutTrace];
}
You have to create a category on UIWindow in order to get this to work:
@interface UIWindow()
+ (UIWindow *)keyWindow;
- (NSString *)_autolayoutTrace;
@end
I put this category in its own header file, UIWindow_AutoLayoutDebug.h
Where ever I call [[UIWindow keyWindow] _autolayoutTrace] in my app, I import UIWindow_AutoLayoutDebug.h
I learned about calling [[UIWindow keyWindow] _autolayoutTrace] in code from the book "iOS 6 by tutorials", Volume 1, by the raywenderlich.com team. The idea of delaying the call is my own.