반응형
[ios] UITextView dynamic height change
-
disable scroll enabled
1. at XIB by Scrolling Enabled
2. at code by [UITextVIew setScrollEnabled:NO]
-
after setting text or at text change event,
CGSize newHeight = [UITextView sizeThatFits:CGSizeMake(UITextView.frame.size.width, MAXFLOAT)];
// do something with the newHeight.height;
// maybe arrange constraint of the UITextField
반응형
'프로그래밍 놀이터 > iOS' 카테고리의 다른 글
[xcode] suppressing warning - incompatible pointer types sending … (0) | 2017.12.22 |
---|---|
[ios] TableView 의 Height dynamic 하게 바꾸기 (0) | 2017.12.21 |
[ios] Constraint animation 주기 (0) | 2017.12.19 |
[ios] System font 가져오기 (0) | 2017.12.18 |
[ios] block typedef 방법 & param 기입 방법 (0) | 2017.12.17 |
댓글