balance-io / old-balance-ios

Balance in Swift
GNU General Public License v3.0
49 stars 16 forks source link

AutoLayout Bug #131

Closed ricburton closed 5 years ago

ricburton commented 5 years ago

This is just popped up. Adding an issue to remind myself to look into it.

[<Ethereum: 0x6000032d0eb0> (entity: Ethereum; id: 0xcab6dcc76010c8b3 <x-coredata://56CB3FA7-2C1B-4571-85AC-B06FF227F005/Ethereum/p3> ; data: <fault>)]
2019-03-31 08:38:43.211807+0100 Balance[58207:14425276] [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. 
    (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
    "<NSAutoresizingMaskLayoutConstraint:0x6000032a6e90 h=--& v=--& Balance.MenuViewTitleCell:0x7fbf9b416c70.height == 0   (active)>",
    "<NSLayoutConstraint:0x600003297610 V:|-(8)-[UILabel:0x7fbf9b41a710'Personal Metamask']   (active, names: '|':Balance.MenuViewTitleCell:0x7fbf9b416c70 )>",
    "<NSLayoutConstraint:0x60000328de00 V:[UILabel:0x7fbf9b41a710'Personal Metamask']-(8)-|   (active, names: '|':Balance.MenuViewTitleCell:0x7fbf9b416c70 )>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x60000328de00 V:[UILabel:0x7fbf9b41a710'Personal Metamask']-(8)-|   (active, names: '|':Balance.MenuViewTitleCell:0x7fbf9b416c70 )>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
wolffan commented 5 years ago

I think that may be my fault i'd need a screenshot if you have one because i don't have all i need to do the screen fully