ios - Is it possible to disable infinite scrolling in UIDatePicker? -


i need create uidatepicker in date mode user cannot scroll uidatepicker infinitely. have tried set min , max date in link how disable infinite scrolling in uidatepicker?

here code:

nscalendar *calendar = [[nscalendar alloc] initwithcalendaridentifier:nscalendaridentifiergregorian]; nsdate *currentdate = [nsdate date]; nsdatecomponents *comps = [[nsdatecomponents alloc] init]; [comps setyear:2015]; nsdate *maxdate = [calendar datefromcomponents:comps]; [comps setyear:1914]; nsdate *mindate = [calendar datefromcomponents:comps];  [datepicker setmaximumdate:maxdate]; [datepicker setminimumdate:mindate]; 

but uidatepicker still infinite scrolling, avoid date out of min-max date. possible disable infinite scrolling in uidatepicker?

setting maximumdate , minimumdate possibility customize behavior of uidatepicker. if not suits requirements, can create own custom date picker, based on uipickerview or find 3d party, example that @ github


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -