A Material Design drop down for iOS
2.43k
stars
623
forks
source link
When I entered the text in textfield to filter the array and show in drop down list. But after entered 2nd letter drop down is showing on it. #330
Open
KOSURUUDAYSAIKUMAR opened 8 months ago
import UIKit
@objc protocol DateFormatDelegate: AnyObject { @objc func dateFilteredCases(date: [String]) @objc func presentPopupViewController(_ viewController: UIViewController)
} class DateCalendarTableViewCell: UITableViewCell {
}
extension DateCalendarTableViewCell: UITextFieldDelegate { func textFieldShouldBeginEditing(_ textField: UITextField) -> Bool { // filteredCases = ["dd MMM yyyy HH:mm zzz", "dd MMM yyyy HH:mm", "dd-MM-yy", "dd-MM-yyyy"] return true }
}
extension DateCalendarTableViewCell: calendarDateSelectDelegate { func selectedDate(text: String, tag: Int) { if tag == 0 { calendarTextField.text = text } else { previousCalendarDate.text = text } } }
extension DateCalendarTableViewCell: UIViewControllerTransitioningDelegate {
}