skywinder / ActionSheetPicker-3.0

Quickly reproduce the dropdown UIPickerView / ActionSheet functionality on iOS.
http://skywinder.github.io/ActionSheetPicker-3.0
BSD 3-Clause "New" or "Revised" License
3.4k stars 740 forks source link

iPad problem #338

Closed canaksoy closed 7 years ago

canaksoy commented 7 years ago

<_UIPopoverBackgroundVisualEffectView 0x7f9a35465b20> is being asked to animate its opacity. This will cause the effect to appear broken until opacity returns to 1.

textField.resignFirstResponder() let datePicker = ActionSheetDatePicker(title: "Date", datePickerMode: UIDatePickerMode.date, selectedDate: Date(), doneBlock: { picker, value, index in

            let dateFormatter = DateFormatter()
            dateFormatter.locale = Locale(identifier: "en_US_POSIX")
            dateFormatter.dateFormat = "YYYY-MM-dd"

            self.birthday.text = dateFormatter.string(from: value as! Date)
            return
        }, cancel: { ActionStringCancelBlock in return }, origin: textField.superview!.superview)
        datePicker?.show()
canaksoy commented 7 years ago

origin: self.birthday

solved