I am having some problem with autoLayout. Particularly in iOS8.
I have already read the net and found similar issues when using
But here I am not using
UITableViewCell and have no
UITableView at all.
When it happens I only have a
ADBannerView and a
UIWebView to deal with.
I get the following message in the Xcode debugger:
Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) ( "<NSLayoutConstraint:0x14e256f0 'UIView-Encapsulated-Layout-Height' V:[UIView:0x14e6c870(568)]>", "<NSLayoutConstraint:0x14d9b320 V:[ADBannerView:0x14d40c30(50)]>", "<NSLayoutConstraint:0x14d97b00 V:|-(20)-[ADBannerView:0x14d40c30] (Names: '|':UIView:0x14e6c870 )>", "<NSLayoutConstraint:0x14d34880 ADBannerView:0x14d40c30.bottom == UIView:0x14e6c870.bottom>" ) Will attempt to recover by breaking constraint <NSLayoutConstraint:0x14d34880 ADBannerView:0x14d40c30.bottom == UIView:0x14e6c870.bottom>
First thing I want to say as a comment. I have not idea where the first constraint (
UIView-Encapsulated-Layout-Height) is coming from.
Second thing; I added one constraint (though there are already too many), to enforce the height of the
ADBannerView, that fixed a display problem.
But I still get the message (as I expected).
If I do not add the constraint to enforce the height of the
ADBannerView. The background of the display becomes white and I fire iAd wherever I tap. A bit like if the height of the
ADBannerView was filling the whole display.
Any suggestion to solve this?
Of course I have not forgotten:
Please let me know if anyone has an idea on what is going on.