Last active
August 29, 2015 14:09
-
-
Save joshdholtz/af1fb14815cda099a80c to your computer and use it in GitHub Desktop.
Autoconstraint issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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:0x17009cb60 UIImageView:0x1701f9900.centerX == AVAudioOnlyIndicatorView:0x170199980.centerX>", | |
| "<NSLayoutConstraint:0x17009cbb0 H:|-(>=10)-[UIImageView:0x1701f9900] (Names: '|':AVAudioOnlyIndicatorView:0x170199980 )>", | |
| "<NSLayoutConstraint:0x17009d970 H:|-(0)-[AVAudioOnlyIndicatorView:0x170199980] (Names: '|':UIView:0x17419a4e0 )>", | |
| "<NSLayoutConstraint:0x17009d9c0 H:[AVAudioOnlyIndicatorView:0x170199980]-(0)-| (Names: '|':UIView:0x17419a4e0 )>", | |
| "<NSLayoutConstraint:0x17009d6f0 H:|-(0)-[UIView:0x17419a4e0] (Names: '|':AVPlayerView:0x17419a410 )>", | |
| "<NSLayoutConstraint:0x17009d740 H:[UIView:0x17419a4e0]-(0)-| (Names: '|':AVPlayerView:0x17419a410 )>", | |
| "<NSLayoutConstraint:0x17409f680 'UIView-Encapsulated-Layout-Width' H:[AVPlayerView:0x17419a410(1)]>" | |
| ) | |
| Will attempt to recover by breaking constraint | |
| <NSLayoutConstraint:0x17009cb60 UIImageView:0x1701f9900.centerX == AVAudioOnlyIndicatorView:0x170199980.centerX> | |
| Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. | |
| The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UIWebView *webView = [[UIWebView alloc] initWithFrame:self.view.bounds]; | |
| [webView.scrollView setScrollEnabled:NO]; | |
| [webView.scrollView setBounces:NO]; | |
| [self.view addSubview:webView]; | |
| [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.youtube.com/watch?v=txj6ROnIUIo"]]]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment