Post

Replies

Boosts

Views

Activity

How to make first picker view row unselectable
Hi to you all, I am new in iOS development and in a making of an app. I am using uitextfield connected with uipickerview in the home screen. Is there somehow a way to make it when I choose the text field the picker view to popup with the first option whitch is (lets say...) "--" whitch is unchoosable. And 2 other options whitch when clicked take me to to other view controllers. This is my code: import UIKit class ViewController: UIViewController { } // Picker View extension ViewController: UIPickerViewDelegate, UIPickerViewDataSource { } The "var identities" are the storyboard identifiers for my other view controllers (This was from a video for table views but I toth to implement them in this code here). I am asking the question for a new ideas on how to make my code doing the stuff I described at the start. I really need help! Please!
2
0
1.4k
Feb ’21