这种方法不行:pickerCtl = UIDatePicker(frame:pickerFrame)但是这种却行pickerCtl = UIDatePicker()pickerCtl!.frame = pickerFrame我觉得是ios的bug!