Can I disable UIPickerView scroll sound?

后端 未结 8 1522
臣服心动
臣服心动 2020-11-30 10:16

I want to disable the annoying clicks that the UIPickerView generates upon scrolling up and down. Is there a way to do this? I want to play short sounds for each item that t

8条回答
  •  悲哀的现实
    2020-11-30 11:13

    Maybe this not the answer for this particular question, but I had a similar problem - set minimumDate for datePicker, and I wanted set it without annoying "click" sound. After some time found very simple solution:

    datePickerCustomTime.minimumDate = [[NSDate date] dateByAddingTimeInterval:300]// min time to set = now + 5 min
      [datePickerCustomTime setDate:[[NSDate date] dateByAddingTimeInterval:300] animated:NO];
    

提交回复
热议问题