IPhone Datepicker plays tick sound

Do any of you know what event I can use in DatePicker when the wheel moves.

I want to play a sound (the resulting sound code), like a wheel spin. Just like a set of timers in an Apple clock.

All that is a single event for ValueChanges, which fires only once, at the end of the wheel rotation.

Thanks in advance

+3
source share
3 answers

I'm not sure if this is possible, as the sounds seem to be related to keyboard clicks in the phone settings. Someone may have a solution, but it is not documented anywhere.

+1
source

: UIPickerView

#import <UIKit/UIKit.h>

@interface SilentUIPickerView: UIPickerView
{ }

- (void) setSoundsEnabled: (BOOL) enabled;
@end

[view setSoundsEnabled: NO]

+1

the reason for this is that when your controller boots up, the date-dial scrolls, so the download is displayed in the field, write this code.

NSDate *d = [[NSDate alloc] init];
[objDatePicker setDate:d animated:NO];
0
source

Source: https://habr.com/ru/post/1750606/


All Articles