- Total
꿈꾸는리버리
TextView vs TextField 본문
TextView 와 TextField 차이
UIKit의 요소는 크게 View, Controls, Bars로 이루어져 있다.
TextView는 View에 해당하고 TextField는 Controls에 해당한다.
즉, TextView는 사용자의 메인 활동을 책임지는 주요콘텐즈로 여러줄이 입력 가능하고, TextField는 사용자의 정보를 전달받는데에 사용되고 한 줄만을 입력받을 수 있다.
TextViews
- 여러줄 가능한 View
- 지정 높이 초과시 스크롤링 가능
- 사용자가 클릭 시 키보드 나오고 입력을 받는 필드
- input의 특성에 맞게 적절한 키보드가 나와야 함
TextFields
- 이름과 전화번호 같이 짧은 정보를 한 줄만 입력을 받을 수 있는 control
- 별도의 레이블 보다는 placeholder로 입력해야 하는 정보를 hint 주기
- field의 trailing 끝에 정보를 전체 삭제 가능한 x 두기
- 비밀번호 같은 보안 정보는 안보이게 하기
- field의 양 끝에 image와 버튼을 만들 수 있음 ( leading에는 field의 목적을, trailing에는 추가적인 특징)
NOTE
발표를 하고 멘토의 피드백을 받았을 때는 부끄러웠지만,, 이렇게 정확하게 알아가는 계기가 된 것 같다. 부족하지만 열심히 하는 것. 그게 나의 매력이자 히든 카드라고 생각한다. 앞으로도 모르는 거 물어보고 알아가고 공부하자 ! 화이팅구리 ➿➿
출처
https://developer.apple.com/design/human-interface-guidelines/ios/views/text-views/
Text Views - Views - iOS - Human Interface Guidelines - Apple Developer
Text Views A text view displays multiline, styled text content. Text views can be any height and enable scrolling when the content extends outside of the view. By default, content within a text view is left-aligned and uses the system font in black. If a t
developer.apple.com
https://developer.apple.com/design/human-interface-guidelines/ios/controls/text-fields/
Text Fields - Controls - iOS - Human Interface Guidelines - Apple Developer
Text Fields A text field is a single-line, fixed-height field that automatically brings up a keyboard when people tap it. Use a text field to request a small amount of information, such as a name or an email address. Show a hint in a text field to help com
developer.apple.com
'오뚝이 개발자 > human interface' 카테고리의 다른 글
HIG읽기 : Modality (0) | 2022.04.06 |
---|---|
HIG읽기 : Loading (0) | 2022.04.04 |
HIG읽기 : Onboarding (4) | 2022.04.03 |
HIG읽기 : Launching (0) | 2022.04.03 |
HIG읽기 : Interface Essentials (2) | 2022.04.03 |