-
2. If the previous style is used
datepicker.preferredDatePickerStyle = .wheels
-
I don’t know if apple’s bug is wrong in both width and height
let datepicker = UIDatePicker(frame: CGRect(x: 0, y: 100, width: self.view.frame.width, height: 300))
datepicker.preferredDatePickerStyle = .wheels
datepicker.backgroundColor = UIColor.yellow
datepicker.datePickerMode = .dateAndTime
self.view.addSubview(datepicker)
4. To fix this, set the frame after the datePickerMode and set it to normal
override init(frame: CGRect) {
super.init(frame: frame)
backgroundColor = .white
Read More:
- pygobject pip3 upgrade problem: ERROR: Failed building wheel for pycairo
- The time of the time database displayed by the front end is inconsistent
- Error reported by thinkphp5 and wdatepicker calendar control
- It’s time to upgrade your parquet: IOException: totalvaluecount = = 0
- Python’s json.loads Invalid control character
- mysql workbench Error Code: 1046. No database selected Select the default DB to be used
- When OFBiz project starts, caused by: org.codehaus.groovy . control.MultipleCompilationErrorsException : startup failed:
- Python about error: invalid command ‘bdist_ The solution of wheel error report
- IOS solves the problem of this action could not be completed. Try again
- MySQL:ERROR 1067 (42000): Invalid default value for ‘end_time’
- Solve the audio control and report domexception: the play() request was interrupted by a call to pause in the chrome console
- Elasticsearch6. X invalid time range query bug
- SQL query time group_ Was cut by group_ CONCAT()
- Ubuntu has solved the error of h5py installation: building wheel for h5py( setup.py )… or error: failed building wheel for h5py
- Apache2 cannot be started and an error is reported for apache2.service failed because the control process exited with error code.
- QGIS uses qt4.6.3 to upgrade to the version compiled by qt4.8.3
- Path cannot be used with params in this. $router. Push() method, otherwise params will be invalid
- CONDA upgrade command: upgrade CONDA, anaconda and various packages
- Invalid archiveerror reported by CONDA
- error: Your local changes to the following files would be overwritten by merge