[問題] UITextView改變height

看板MacDev作者 (Jay)時間6年前 (2017/07/21 16:20), 6年前編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
請問一下 我在storyboard設定UITextView排版的時候,height設成0, 之後在用textfield裡的pickerview選到某個特定的選項時, 我想讓我的textView的height變長,不知道我這樣的程式碼對不對, 麻煩大家幫我看一下!謝謝! func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent c if pickerView.tag == 1 { projectField.text = projectData[row] if projectData.count == 2 { textview = UITextView(frame: CGRect(x: 47.5, y: 333, width: 280, h eight: 50 } } else { insuranceField.text = insuranceData[row] } } -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 220.134.230.188 ※ 文章網址: https://www.ptt.cc/bbs/MacDev/M.1500625254.A.C88.html ※ 編輯: prince0124 (223.140.208.38), 07/21/2017 17:14:00 ※ 編輯: prince0124 (223.140.208.38), 07/21/2017 17:14:36 ※ 編輯: prince0124 (223.140.208.38), 07/21/2017 17:15:05
文章代碼(AID): #1PSRbco8 (MacDev)
文章代碼(AID): #1PSRbco8 (MacDev)