[swift] textfield last text remove
안녕하세요 오늘은 텍스트 입력시 Max 값 입력시 마지막 자리를 자르고 입력이 체크하는 기능을 만들어보겠습니다.. 코드는 간다하니깐 바로 써볼께요 extension ViewController : UITextFieldDelegate { func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool { let MaxCnt = 7 if range.location > MaxCnt { var str1 = textField.text! let strRange = str1.index(str1.startIndex, offsetBy: 0) … str1.index(s..
IOS
2020. 7. 20. 20:21
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- iPhone X safe area size
- wwdc21 actor
- Swift version code
- firebase remote config
- [WindowScene] Failed to Error
- swift uitextfield 글자수 제한
- Swift button text underline
- Sandbox account logout
- autoclosure
- Swift 노치 구분
- 맛집
- Swift app version check
- swift actor
- swift autoclosure
- Android
- Swift 앱 버전
- How to get version swift
- android notification
- Sandbox test login on
- [WindowScene] Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not set?
- 위메프
- 샤브샤브
- Sandbox account sign out
- Swift label underline storyboard
- Swift textField max length
- Swift button underline programmatically
- 쇼미더머니6
- Bundle main infodictionary swift 4
- Swift check notch
- SceneDelegate error
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함