Ho problemi con la modifica della mia altezza UIView al momento del lancio.Come cambio la dimensione di UIView?
Devo UIView e voglio uno schermo dimensione * 70 e l'altro per colmare il divario.
qui è quello che ho
@IBOutlet weak var questionFrame: UIView!
@IBOutlet weak var answerFrame: UIView!
let screenSize:CGRect = UIScreen.mainScreen().bounds
e
questionFrame.frame.size.height = screenSize.height * 0.70
answerFrame.frame.size.height = screenSize.height * 0.30
Non ha alcun effetto sul app in fase di esecuzione. Io uso l'autolayout ma ho solo i vincoli sui margini ...
Sto sbagliando tutto?
questionFrame.frame = CGRectMake (0, 0, self.view.frame.width, self.view.frame.height * 0.7) answerFrame.frame = (0, self.view.frame.height * 0.7, self .view.frame.width, self.view.frame.height * 0.3) Qualcosa del genere è ciò che cerchi? – User4