Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run PresentrExample display something wrong??? #146

Open
hopy11 opened this issue May 22, 2018 · 3 comments
Open

Run PresentrExample display something wrong??? #146

hopy11 opened this issue May 22, 2018 · 3 comments
Labels

Comments

@hopy11
Copy link

hopy11 commented May 22, 2018

I use Xcode 9.3.1(Swift 4.1,iOS 11.3),and I run PresentrExample ,after I selected the first two items in main UI,Since then it's can not display any popup (please see Gif below) :

1

Why is that??? and How to fix it??? Thanks

@addisonElliott
Copy link

👍
Same issue here when running example.

To add to this, here is the text that is reported in the debug view:

LOADED FONTS
CANCEL!!
CANCEL!!
CANCEL!!
2018-06-12 10:55:44.159354-0500 PresentrExample[36744:11235868] [LayoutConstraints] 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. 
(
    "<NSLayoutConstraint:0x604000282300 H:|-(20)-[UILabel:0x7fefd072a010'This action can't be undo...']   (active, names: '|':UIView:0x7fefd0601200 )>",
    "<NSLayoutConstraint:0x604000282350 H:[UILabel:0x7fefd072a010'This action can't be undo...']-(20)-|   (active, names: '|':UIView:0x7fefd0601200 )>",
    "<NSLayoutConstraint:0x604000282620 H:|-(0)-[UIView:0x7fefd0601200]   (active, names: '|':UIView:0x7fefd0531b00 )>",
    "<NSLayoutConstraint:0x6040002826c0 H:[UIView:0x7fefd0601200]-(0)-|   (active, names: '|':UIView:0x7fefd0531b00 )>",
    "<NSLayoutConstraint:0x6040002816d0 'UIView-Encapsulated-Layout-Width' UIView:0x7fefd0531b00.width == 0   (active)>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x604000282350 H:[UILabel:0x7fefd072a010'This action can't be undo...']-(20)-|   (active, names: '|':UIView:0x7fefd0601200 )>

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.
2018-06-12 10:55:44.160567-0500 PresentrExample[36744:11235868] [LayoutConstraints] 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. 
(
    "<NSLayoutConstraint:0x6040002823f0 H:|-(0)-[UIStackView:0x7fefd0530830]   (active, names: '|':UIView:0x7fefd0601200 )>",
    "<NSLayoutConstraint:0x6040002824e0 H:[UIStackView:0x7fefd0530830]-(0)-|   (active, names: '|':UIView:0x7fefd0601200 )>",
    "<NSLayoutConstraint:0x604000282620 H:|-(0)-[UIView:0x7fefd0601200]   (active, names: '|':UIView:0x7fefd0531b00 )>",
    "<NSLayoutConstraint:0x6040002826c0 H:[UIView:0x7fefd0601200]-(0)-|   (active, names: '|':UIView:0x7fefd0531b00 )>",
    "<NSLayoutConstraint:0x604000281fe0 'UISV-canvas-connection' UIStackView:0x7fefd0530830.leading == UIButton:0x7fefd041b1b0'NO, SORRY! \Ud83d\Ude31'.leading   (active)>",
    "<NSLayoutConstraint:0x604000281db0 'UISV-canvas-connection' H:[UIButton:0x7fefd0729ae0'DO IT! \Ud83e\Udd18']-(0)-|   (active, names: '|':UIStackView:0x7fefd0530830 )>",
    "<NSLayoutConstraint:0x6040000937e0 'UISV-fill-equally' UIButton:0x7fefd0729ae0'DO IT! \Ud83e\Udd18'.width == UIButton:0x7fefd041b1b0'NO, SORRY! \Ud83d\Ude31'.width   (active)>",
    "<NSLayoutConstraint:0x604000282170 'UISV-spacing' H:[UIButton:0x7fefd041b1b0'NO, SORRY! \Ud83d\Ude31']-(5)-[UIButton:0x7fefd0729ae0'DO IT! \Ud83e\Udd18']   (active)>",
    "<NSLayoutConstraint:0x6040002816d0 'UIView-Encapsulated-Layout-Width' UIView:0x7fefd0531b00.width == 0   (active)>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x604000282170 'UISV-spacing' H:[UIButton:0x7fefd041b1b0'NO, SORRY! 😱']-(5)-[UIButton:0x7fefd0729ae0'DO IT! 🤘']   (active)>

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.
2018-06-12 10:55:44.161773-0500 PresentrExample[36744:11235868] [LayoutConstraints] 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. 
(
    "<NSLayoutConstraint:0x604000282210 H:|-(20)-[UILabel:0x7fefd05303b0'Are you sure? \U26a0\Ufe0f']   (active, names: '|':UIView:0x7fefd0601200 )>",
    "<NSLayoutConstraint:0x6040002822b0 H:[UILabel:0x7fefd05303b0'Are you sure? \U26a0\Ufe0f']-(20)-|   (active, names: '|':UIView:0x7fefd0601200 )>",
    "<NSLayoutConstraint:0x604000282620 H:|-(0)-[UIView:0x7fefd0601200]   (active, names: '|':UIView:0x7fefd0531b00 )>",
    "<NSLayoutConstraint:0x6040002826c0 H:[UIView:0x7fefd0601200]-(0)-|   (active, names: '|':UIView:0x7fefd0531b00 )>",
    "<NSLayoutConstraint:0x6040002816d0 'UIView-Encapsulated-Layout-Width' UIView:0x7fefd0531b00.width == 0   (active)>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x6040002822b0 H:[UILabel:0x7fefd05303b0'Are you sure? ⚠️']-(20)-|   (active, names: '|':UIView:0x7fefd0601200 )>

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.

@danlozano
Copy link
Contributor

Looking into this, will fix.

It's an issue with the example project code, not with the Presentr library itself.

But will fix soon 👍 thanks

@danlozano danlozano added the bug label Jul 5, 2018
@libern
Copy link

libern commented Jan 27, 2019

When will it be fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants