UIStepper

Tabber·2021년 7월 13일
0

Apple Document

목록 보기
7/12

class

A control for incrementing or decrementing a value.
값을 증가시키거나 감소시키기 위한 컨트롤입니다.

Declaration

class UIStepper: UIControl

Overview

By default, pressing and holding a stepper’s button increments or decrements the stepper’s value repeatedly. The rate of change depends on how long the user continues pressing the control. To turn off this behavior, set the autorepeat property to false.
기본적으로 스테퍼 버튼을 길게 누르면 스테퍼 값이 반복적으로 증가하거나 감소합니다. 변경 속도는 사용자가 컨트롤을 계속 누르는 시간에 따라 달라집니다. 이 동작을 해제하려면 자동 반복 속성을 false로 설정하십시오.

The maximum value must be greater than or equal to the minimum value. If you set a maximum or minimum value that would break this invariant, both values are set to the new value. For example, if the minimum value is 200 and you set a maximum value of 100, then both the minimum and maximum become 200.
최대값은 최소값보다 크거나 같아야 합니다. 이 불변성을 깨는 최대값 또는 최소값을 설정하면 두 값이 모두 새 값으로 설정됩니다. 예를 들어 최소값이 200이고 최대값을 100으로 설정하면 최소값과 최대값이 모두 200이 됩니다.

profile
iOS 정복중인 Tabber 입니다.

0개의 댓글