I am using picker view as a dropdown menu according to user's choice one of my text field needs to be disabled. I have added my delegate and in my didSelectRowAt function there is textField.isEnabled = false but when I tried to select row programmatically using myPicker.selectRow(0, inComponent: 0, animated: true). However when I use that function my didSelectRowAt function is not working and the text field that I need to disabled stays enabled. Why selectRow function is not triggering didSelectRowAt function and how can I trigger it?
Pickerview select row and didSelectRowAt functions
301 Views Asked by atalayasa At
1
There are 1 best solutions below
Related Questions in SWIFT
- Navigate after logged in with webservice
- URLSession requesting JSON array from server not working
- When using onDrag in SwiftUI on Mac how can I detect when the dragged object has been released anywhere?
- Protect OpenAI key using Firebase function
- How to correct error: "Cannot convert value of type 'MyType.Type' to expected argument type 'Binding<MyType>'"?
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Using @Bindable with a Observable type in SwiftUI
- How to make a scroll view of 9 images in a forEach loop open on image 6 if image 6 is clicked on from a grid?
- Using MTLPixelFormat.rgba16Float results in random round-off errors
- Search and highlight text of current text in PDFKit Swift
- How is passing a function as a parameter related to escaping autoclosure?
- Actionable notification api call not working in background
- Custom layout occupies all horizontal space
- Is it possible to fix slow CKAsset loading on Cloudkit?
- Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value - MapView.isMyLocationEnabled
Related Questions in UITEXTFIELD
- How do ı move UITextFieldDelegate to ViewModel
- UITextView textContainer.exclusionPaths not working well
- Show TextField above keyboard
- tvOS - inputView on UITextfield does not work
- Cursor does not appear on initial click in UITextField
- How to get tableview cell's textfield values in submit button in swift
- When I tap and immediately type, the UITextField freezes, but if I tap it then wait, type works
- Textfield type date get year only in React
- How to set a value on a React TextField with handlechange?
- UITextField textColor changed after clearing the text
- OTP screen problem, while entering and deleting characters
- Select all text on focus with TextField in Flutter
- Why am I able to fill OTP with Autofill without using .oneTimeCode in Swift?
- Missing TextField
- How to get value from TextFields and append that value in DataModel in TableViewCell in Swift?
Related Questions in UIPICKERVIEW
- Swift Picker Containing A View Not Showing The Color component
- How can I save several UISwitches and thus display different arrays of a Pickerview?
- Picker selection mismatch with decoded Json river data
- How to show selected JSON data in the pickerview?
- UIPickerView won't scroll on a custom UIView
- how to have "hour", "minute", "second" text behind UIPickView
- Formatting picker titles and columns in groups
- How to set color and text/font size of picker text?
- UIPIckerview strange display behaviour
- SwiftUI Alert with Picker
- How to create a custom UIPickerView to connect to UITextField in Swift
- Trying to identify an element on Apple Guideline website for use with Swift
- Create a done button for RxPickerViewAttributedStringAdapter
- UIPickerView not playing the scrolling sound
- How can I make a smoothed custom Picker on SwiftUI?
Related Questions in UIPICKER
- Hide Picker View Hide Left Swift
- Uipicker background blur
- Country picker in swift like clubhouse
- Adding UIDatePicker a non-Date option
- Removing UIPickerView when button is pressed swift
- how to ensure only picker data is selected in the textfield
- Get the UITextfield textFieldDidEndEditing callback in a custom UIPicker class
- How to detect is UI Picker View scrolling
- Swift UIPickerView last column of data causes fatal crash
- beginner with Swift with an error UIPicker
- Pickerview select row and didSelectRowAt functions
- Hide UIPicker after Selection
- How to Scroll to Specific Row in UIPickerView In iOS Swift 3
- How to change content of UIPicker without creating a new one?
- Swift/Xcode - AKPickerView/UIPickerView - fatal error: Index out of range
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can call didSelectRow method programmatically like this.