我在一年中的所有月份製作一個pickerView,我想創建一個數組,當前月份在pickerView的開頭,接下來的一個月等等。我已經在所有的月份中填充了pickerView和數組,並且我也獲得了當前日期。 let Months = ["January","Febrary","March","April","May","June","July","August","September","Octob
我有一個UIpicker模態窗口。一切工作正常,除了一件事。當用戶單擊輸入文本字段時,帶有UIpickerView的模式窗口按預期打開。如果所選的行是正確的,並且用戶單擊確定按鈕,則當前代碼無法註冊該值。 // Set the default row, so if user click ok without changing it is recorded
self.picker.selectRo