0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Swift】PickerViewの中身が表示されないとき

Posted at

どういうことか

dd88120c8416b3000c00e44b57d40e20.png

なにもない

疑ってみること

    @IBOutlet weak var pickerView: UIPickerView!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        pickerView.delegate = self
        pickerView.dataSource = self
    }

delegate とかを書いてないのでは??

たとえば他の方が同じような実装をしたControllerではStoryboardでdelegateなどが設定されている場合、それを参考にしながら書くとハマる。というかハマった。

おわり(´・ω・`)

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?