본문 바로가기

iOS_Swift

[iOS]Pickers_Human Interface Guideline

반응형

이 글은 2019년 4월 4일 처음으로 작성되었으며, 추후에 계속 수정될 수 있습니다. 

피드백은 언제나 환영입니다. 댓글이나 메일 주세요 :)

 

Picker란?

 

Picker에는 2가지 종류가 있습니다.

 

1. Pickers

 

 

2. Date Pickers

 

 

 

https://developer.apple.com/design/human-interface-guidelines/ios/controls/pickers/

 

Pickers - Controls - iOS - Human Interface Guidelines - Apple Developer

Pickers A picker includes one or more scrollable lists of distinct values, each of which has a single selected value—appearing in darker text in the center of the view. A picker is often displayed at the bottom of the screen or in a popover when the user i

developer.apple.com

 

Pickers

A picker includes one or more scrollable lists of distinct values, each of which has a single selected value—appearing in darker text in the center of the view. A picker is often displayed at the bottom of the screen or in a popover when the user is editing a field or tapping a menu. Pickers can also appear inline, such as while editing a date in a Calendar event. The height of a picker is roughly the height of five rows of list values. The width of a picker is either the width of the screen or its enclosing view, depending on the device and context.

Use predictable and logically ordered values. Many values in a picker may be hidden when the scrollable lists are stationary. It's best when people can predict what these values are, such as with a list of alphabetized countries, so they can move through the lists quickly.

Avoid switching screens to show a picker. A picker works well when displayed in context, below or in close proximity to the field being edited.

Use a table instead of a picker for large value lists. Long lists can be tedious to navigate in a picker. A table has adjustable height and can include an index, making scrolling much faster.

 

 

 

 

 


Date Pickers

A date picker is an efficient interface for selecting a specific date, time, or both. It also provides an interface for displaying a countdown timer.

 

A date picker has four modes, each of which presents a different set of selectable values.

  • Date. Displays months, days of the month, and years.
  • Time. Displays hours, minutes, and (optionally) an AM/PM designation.
  • Date and time. Displays dates, hours, minutes, and (optionally) an AM/PM designation.
  • Countdown timer. Displays hours and minutes, up to a maximum of 23 hours and 59 minutes.

The exact values shown in a date picker and their order depend upon the user’s locale.

Consider providing less granularity when specifying minutes. By default, a minute list includes 60 values (0 to 59). You can optionally increase the minute interval as long as it divides evenly into 60. For example, you might want quarter-hour intervals (0, 15, 30, and 45).

 

 

 

 

 

 

 


 

https://developer.apple.com/documentation/uikit/uipickerview

 

UIPickerView - UIKit | Apple Developer Documentation

The UIPickerViewDataSource protocol must be adopted by an object that mediates between a UIPickerView object and your application’s data model for that picker view. The data source provides the picker view with the number of components, and the number of r

developer.apple.com

본 내용 개발과 관련된 포스팅은 곧 추가될 예정입니다. 

 

 

 

https://developer.apple.com/documentation/uikit/uidatepicker

 

UIDatePicker - UIKit | Apple Developer Documentation

A control that displays a horizontal series of dots, each of which corresponds to a page in the app’s document or other data-model entity.

developer.apple.com

본 내용 개발과 관련된 포스팅은 곧 추가될 예정입니다.

 

 

반응형

'iOS_Swift' 카테고리의 다른 글

iOS 프로그래밍, Swift 공부 자료  (0) 2021.06.15
iOS 개발 시 참고하면 좋은 사이트  (0) 2021.05.20
iOS 개발자 로드맵 (ver.2019년)  (0) 2021.05.20