Project: titanium
Issue TIMOB-17639: iOS8: Ti.UI.OptionDialog.show() doesn't work without view-property on iPad
*Problem* An {{Ti.UI.OptionDialog}} doesn't show on iPads running iOS8, giving the following (quiet) error in the device logs: {code} [DEBUG] 2014-09-08 11:25:30.767 od[8034:231901] Unable to simultaneously satisfy constraints. [DEBUG] 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) [DEBUG] ( [DEBUG] "", [DEBUG] "= UIView:0x7ba9f730.width>", [DEBUG] "", [DEBUG] "" [DEBUG] ) [DEBUG] [DEBUG] Will attempt to recover by breaking constraint [DEBUG] [DEBUG] [DEBUG] Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. [DEBUG] The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in may also be helpful. [DEBUG] 2014-09-08 11:25:30.768 od[8034:231901] Unable to simultaneously satisfy constraints. [DEBUG] 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) [DEBUG] ( [DEBUG] "", [DEBUG] "", [DEBUG] "= UIView:0x7ba9f730.width>", [DEBUG] "", [DEBUG] "" [DEBUG] ) [DEBUG] [DEBUG] Will attempt to recover by breaking constraint [DEBUG] [DEBUG] [DEBUG] Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. [DEBUG] The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in may also be helpful. [DEBUG] 2014-09-08 11:25:30.770 od[8034:231901] Unable to simultaneously satisfy constraints. [DEBUG] 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) [DEBUG] ( [DEBUG] "", [DEBUG] "", [DEBUG] "= UIView:0x7ba9f730.width>", [DEBUG] "", [DEBUG] "" [DEBUG] ) [DEBUG] [DEBUG] Will attempt to recover by breaking constraint [DEBUG] [DEBUG] [DEBUG] Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. [DEBUG] The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in may also be helpful. [DEBUG] 2014-09-08 11:25:30.771 od[8034:231901] Unable to simultaneously satisfy constraints. [DEBUG] 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) [DEBUG] ( [DEBUG] "=44)]>", [DEBUG] "", [DEBUG] "", [DEBUG] "", [DEBUG] "", [DEBUG] "", [DEBUG] "", [DEBUG] "" [DEBUG] ) [DEBUG] [DEBUG] Will attempt to recover by breaking constraint [DEBUG] =44)]> [DEBUG] [DEBUG] Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. [DEBUG] The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in may also be helpful. [DEBUG] 2014-09-08 11:25:30.772 od[8034:231901] Unable to simultaneously satisfy constraints. [DEBUG] 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) [DEBUG] ( [DEBUG] "=44)]>", [DEBUG] "", [DEBUG] "", [DEBUG] "", [DEBUG] "" [DEBUG] ) [DEBUG] [DEBUG] Will attempt to recover by breaking constraint [DEBUG] =44)]> [DEBUG] [DEBUG] Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. [DEBUG] The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in may also be helpful. {code} *Steps to reproduce* With the following combinations, build and run the test case and click on the window to open the dialog. - SDK 3.4 / iOS8 / iPhone: OK - SDK 3.4 / iOS8 / iPad: *Error* - SDK 3.3 / iOS7.1 / iPhone: OK - SDK 3.3 / iOS7.1 / iPad: OK *Test case* {code} var win = Ti.UI.createWindow({ backgroundColor: 'white' }); win.addEventListener('click', function(e) { Ti.UI.createOptionDialog({ options: ['a', 'b'] }).show(); }); win.open(); {code}
Story points: 3