Adding constraints in SDCAlertView
问题 I'm using a the pod SDCAlertView, I need to add an imageView + a textField to my content view, however I am having trouble with my constraints, below is my code. let imageView = UIImageView(frame: CGRectMake(0, 0, 100, 100)) imageView.image = UIImage(named: "kalafina") imageView.contentMode = .ScaleAspectFill let alert = AlertController(title: "Testing", message: "1234") imageView.translatesAutoresizingMaskIntoConstraints = false alert.contentView.addSubview(imageView) let