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 |
Tags
- firebase
- 면접을 위한 CS 전공 지식 노트 Tree
- 양궁대회
- 자료구조
- Array vs Linked List
- ReferceCycle
- 테이블뷰 나누기
- retain cycle
- 프로그래머스
- NavigationSearchBar
- tableview section별 다른 cell적용
- til
- 면접을 위한 CS전공 지식 노트
- Input Output
- @escaping
- 강한 참조 순환
- Carousel CollectionView
- 롤케이크 자르기
- wil
- Reference Cycle
- TableView Section
- SWIFT
- coremotion
- UIKit
- CoreData
- TableView
- CarouselCollectionview
- UserDefaults
- Value Type Reference Type
- class struct
Archives
- Today
- Total
목록TextField (1)
개발하는 동글 :]

1. Try func textFieldDidChangeSelection(_ textField: UITextField) { var text = textField.text ?? "" let width = textField.frame.width if width > (Constant.screenWidth - (Constant.defalutPadding * 2)) { text.popLast() diaryAddView.titleTextField.text = text } } 처음 생각해 본 접근으로는 textfield의 넓이를 주지 않은 다음 textfield의 넓이가 글자수에 따라 넓어질 때 그 넓이가 일정한 넓이보다 커질 경우 마지막 글자를 제거한 뒤 텍스트 필드에 재할당 하는 방식이다. 결과는? 위의 동영상과 ..
카테고리 없음
2023. 9. 27. 00:51