Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- Linux
- Unity
- flutter
- python
- pandas
- 맛집
- node.js
- urllib
- IOS
- swift
- mssql
- tensorflow
- javascript
- 리눅스
- port
- MS-SQL
- PyQt5
- Excel
- sqlite
- 라즈베리파이
- 유니티
- 다이어트
- MySQL
- PyQt
- PER
- 함수
- ubuntu
- GIT
- ASP
- 날짜
Archives
목록UITextField (1)
아미(아름다운미소)
UITextField 또는 UITextView 문자 수를 제한하는 방법
UITextField또는 UITextView에 사용자가 특정 글자 수보다 더를 입력되는것을 방지하려면 shouldChangeCharactersIn(텍스트 필드) 또는 shouldChangeTextIn(텍스트 뷰) 를 사용하시면 됩니다.UITextField (한 줄)로 작업하는지 또는 UITextView (여러 줄)로 작업하는지에 따라서 두 가지 방법 중 하나를 사용 하시면 됩니다. - textField func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool { let currentText = textField.text ?? "" guard ..
랭귀지/SWIFT
2018. 5. 20. 09:30