See UnitTestViews.m For unit testing, the test has yet to come up with a view which actually has ambiguous layout according to the OS. It always seems to return true. Maybe looking up some examples from WWDC videos would give some good examples.