Home>
All three are in an error state. When I looked into it, it was written that the position of the closing parenthesis was different, but I do not understand well
Error messageError message
Value of type 'UIDatePicker?' Has no member 'delegate'
### Applicable source code
self.testPickerView.delegate = self
self.testPickerView.dataSource = self
count = dataList [0] [testPickerView.selectedRow (inComponent: 1)] * 60
Enter the language name here
swift
-
Answer # 1
Related articles
- xcode - [swift] i want to get a value from an object with ncmb of nifty cloud
- xcode - i want to retrieve the value of a list type variable defined in the realm class
- xcode - mailcomposecontroller delegate method is not called
- Java member variable default value principle
- i want to share the value of a member variable in another class in c ++
- xcode - i want to solve the problem that the value of textfield goes into all textlabels
- xcode - [swift] i don't know how to get a json data dictionary type value
- xcode - i want to pass the cell value of uitableview at the time of screen transition
- xcode - i want to return the value obtained by findobjectsinbackground
- xcode - error message this class is not key value coding-compliant
- xcode - the value of the argument cannot be changed and the slot does not stop
- xcode - i'm having trouble getting the value of a sub-collection in cloud firestore
- xcode - could not cast value of type error cannot be resolved
- the value of contentoffsetx in the scroll view is always 0 [xcode]
- xcode - i want to make the initial value of pickerview blank
- xcode - i want to put the value of pickerveiw in a variable
- xcode - i want to assign a variable value depending on the screen aspect ratio of swiftui/iphone
- xcode - crash with the error "this class is not key value coding-compliant for the key"
- xcode - i want to get the value of dictionary type
- why can't i pass values by value in swift (xcode)
Related questions
- swift : I want to upload /download photos taken with an app to iCloud
- xcode - i want to assign a variable value depending on the screen aspect ratio of swiftui/iphone
- about xcode code
- i cannot turn on "push notifications" in xcode
- xcode - i want to enter textfield when tapping swiftui button
- xcode - i want to get the value of dictionary type
- xcode - crash with the error "this class is not key value coding-compliant for the key"
- xcode - i want to change from modal transition to push transition
- ios - i want to display the initial text value of uitextfield in swiftui
- xcode - 'stpsourceprotocol' error [stripe]
I don't think
UIDatePicker
hasdelegate
. (See the definition of the UIDatePicker class.)UIPickerView
hasdelegate
.If testPickerView is changed to UIPickerView, it will be fixed.