Snapkit:A multiplier of 0 or a nil second item together with a location for the first attribute c...

Snapkit报错:A multiplier of 0 or a nil second item together with a location for the first attribute creates an illegal constraint of a location equal to a constant. Location attributes must be specified in pairs.'

解决:先superview.addSubView再用snapkit做约束

你可能感兴趣的:(Snapkit:A multiplier of 0 or a nil second item together with a location for the first attribute c...)