Je veux passer entre deux commutateur GONE et VISIBLE que je faisais très facilement sur Android, mais je ne sais vraiment pas quoi faire à ce sujet dans rapide essayez ce code dans l'étiquette gonecomment changer la visibilité GONE et VISIBLE rapide
// set the width constraint to 0
let widthConstraint = NSLayoutConstraint(item: self.labelShortDescription, attribute: NSLayoutAttribute.width, relatedBy: NSLayoutRelation.equal, toItem: nil, attribute: NSLayoutAttribute.notAnAttribute, multiplier: 1, constant: 0)
self.labelShortDescription.addConstraint(widthConstraint)
// set the height constraint to 0
let heightConstraint = NSLayoutConstraint(item: self.labelShortDescription, attribute: NSLayoutAttribute.height, relatedBy: NSLayoutRelation.equal, toItem: nil, attribute: NSLayoutAttribute.notAnAttribute, multiplier: 1, constant: 0)
self.labelShortDescription.addConstraint(heightConstraint)
vous dire pour afficher et masquer un objet? –
je veux montrer et allé voir –