Multiline editable text UITextview inside UIAlertController?
问题 How can I make a multiline editable text UITextview inside a UIAlertController ? UITextfield supports a single line and we need to make a multiline text edit box in the pop up window. 回答1: This is good appraoch ... func popUpController() { let alertController = UIAlertController(title: "\n\n\n\n\n\n", message: nil, preferredStyle: UIAlertController.Style.actionSheet) let margin:CGFloat = 8.0 let rect = CGRect(x: margin, y: margin, width: alertController.view.bounds.size.width - margin * 4.0,