UrbanApps / UAModalPanel

An animated modal panel alternative for iOS

Home Page:http://code.coneybeare.net/uamodalpanel-an-open-source-modal-panel-alter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iOS 6 compatibility errors

ddaddy opened this issue · comments

I'm not sure if you've tried out iOS6 and xCode 4.5, but this gives errors about the constraints. I think it's to do with the popping up animation as it doesn't appear from where it's set to appear from. The constraints system seems to have been changed in xCode 4.5
Here's an example of the errors:

2012-06-18 10:47:08.647 iSlide[2829:907] 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)
(
"<NSAutoresizingMaskLayoutConstraint:0x1e8c3c60 h=--& v=--& H:[UIView:0x1e8b3730(0)]>",
"<NSLayoutConstraint:0x1e8b2720 H:[UILabel:0x1e8b3010(42)]>",
"<NSLayoutConstraint:0x1e8b4b80 H:[UILabel:0x1e8b3010]-(NSSpace(20))-| (Names: '|':UIView:0x1e8b3730 )>",
"<NSLayoutConstraint:0x1e8b4b40 H:[UILabel:0x1e8b37c0]-(NSSpace(8))-[UILabel:0x1e8b3010]>",
"<NSLayoutConstraint:0x1e8b49a0 UILabel:0x1e8b37c0.centerX == UIView:0x1e8b3730.centerX>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x1e8b2720 H:[UILabel:0x1e8b3010(42)]>

Break on objc_exception_throw to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2012-06-18 10:47:08.666 iSlide[2829:907] 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)
(
"<NSAutoresizingMaskLayoutConstraint:0x1e8c3c60 h=--& v=--& H:[UIView:0x1e8b3730(0)]>",
"<NSLayoutConstraint:0x1e8b4fc0 H:[UILabel:0x1e8b34b0]-(NSSpace(20))-| (Names: '|':UIView:0x1e8b3730 )>",
"<NSLayoutConstraint:0x1e8b4f40 UILabel:0x1e8b34b0.leading == UILabel:0x1e8b30b0.leading>",
"<NSLayoutConstraint:0x1e8b4e40 UILabel:0x1e8b30b0.leading == UILabel:0x1e8b3280.leading>",
"<NSLayoutConstraint:0x1e8b4dc0 UILabel:0x1e8b3280.leading == UILabel:0x1e8b46f0.leading>",
"<NSLayoutConstraint:0x1e8b4c80 UILabel:0x1e8b46f0.leading == UILabel:0x1e8b3010.leading>",
"<NSLayoutConstraint:0x1e8b4b40 H:[UILabel:0x1e8b37c0]-(NSSpace(8))-[UILabel:0x1e8b3010]>",
"<NSLayoutConstraint:0x1e8b49a0 UILabel:0x1e8b37c0.centerX == UIView:0x1e8b3730.centerX>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x1e8b4b40 H:[UILabel:0x1e8b37c0]-(NSSpace(8))-[UILabel:0x1e8b3010]>

Break on objc_exception_throw to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2012-06-18 10:47:08.674 iSlide[2829:907] 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)
(
"<NSAutoresizingMaskLayoutConstraint:0x1e8c3c60 h=--& v=--& H:[UIView:0x1e8b3730(0)]>",
"<NSLayoutConstraint:0x1e8b4fc0 H:[UILabel:0x1e8b34b0]-(NSSpace(20))-| (Names: '|':UIView:0x1e8b3730 )>",
"<NSLayoutConstraint:0x1e8b4f00 H:[UILabel:0x1e8b44c0]-(NSSpace(8))-[UILabel:0x1e8b34b0]>",
"<NSLayoutConstraint:0x1e8b4c00 H:|-(NSSpace(20))-[UILabel:0x1e8b44c0] (Names: '|':UIView:0x1e8b3730 )>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x1e8b4f00 H:[UILabel:0x1e8b44c0]-(NSSpace(8))-[UILabel:0x1e8b34b0]>

Break on objc_exception_throw to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.

I haven't tried out iOS 6 yet, but the actual UAModalPanel code is all done in code, not in IB. I think this error probably has to do with the example project and not the UAModalPanel library.

Yes I think you are right. I haven't got the example in my project, but I have a .xib with a UIView I use in the panel.
It must be complaining about the constraints in this UIView as it tries to shrink the panel on close.
I really dont understad their new constraints system, so i'll have to do some reading.

When you create a new xib file, under the File Inspector tab (Seems a strange place to put it) there is a setting 'Use Autolayout'. This just needs disabling.

I got many lines in the console when I set auto layouut in a custom view of xib.

Then don't do that.