uipickerview

    1热度

    2回答

    我如何排序了这阵我PickerView?我正在使用Swift 3.

    2热度

    3回答

    所以我有一个UIpickerview的代码,我想获取选定的值作为变量以后使用,我尝试使用变量引力,但它表示“初始化变量引力从未被使用。 ......”这里是我的代码: var g = ["9.807", "3.711"] func numberOfComponents(in pickerView: UIPickerView) -> Int { return 1 } func pi

    0热度

    1回答

    here when i define a cell ,,then in picker it did not recognize and always be 0. so the label always be empty.OR rather then when i update my collection view then all element(9 element)of cell has bee

    0热度

    1回答

    我在UIPickerView的viewForRow事件中尝试了下面的代码。当标签出现时,Textfield不出现。是否允许在选择器视图中添加文本框? 这是我的代码: func pickerView(_ pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusing view: UIView?)

    0热度

    1回答

    我目前有一个webservice链接,它有一个问题和一组答案。我需要我的pickerview加载这些答案,但是这不是加载数组或任何数据。数组的名字叫做“答案” class QuestionsViewController: UIViewController, UIPickerViewDelegate { @IBOutlet weak var usernamelabel: UILabel! //s

    0热度

    2回答

    我目前遇到pickerview的问题,因为当我单击应用程序时,选择器视图未从Web服务加载的玩法测验。选择器视图应显示来自Web服务的答案数组。选择器视图是空的任何想法?另外问题是不是从Web服务加载为文本标签? class QuestionsViewController: UIViewController, UIPickerViewDelegate { @IBOutlet weak var

    0热度

    1回答

    我想要用户这样做:当他们从第一个选择器中选择一个项目和另一个选择器上的项目,然后单击该按钮时,它们将在文本字段中得到结果。我怎样才能做到这一点? 我已经创建了两个选择器,文本字段和一个按钮。例如:如果用户从第一个微调器中选择他们的名字,第二个微调器选择他们的ID,当他们点击按钮时,文本视图将显示他们的电话号码。 这是我做过什么,到目前为止: // // ViewController.swift /

    0热度

    1回答

    我有一个UIPickerView嵌入在UIScrollView里面,使用Swift 3. UIVScrollView嵌入在UIView里面并垂直滚动。不过,我也有UIScrollView内嵌的UIPickerview。 UIPickerView在iPhone中点击它时不会滚动(它在模拟器中工作正常)。 尝试添加:scrollView.delaysContentTouches = false和scr

    0热度

    1回答

    我正在创建一个预订应用程序。我正在使用UIPickers显示打开的时间。我有选择器功能齐全,但不知道如何在用户从提供的选项中选择一个后删除预订时间。我对Xcode比较陌生,所以任何信息都非常感谢! import Foundation import UIKit import Firebase import FirebaseDatabase class sTimeSelectionViewC

    0热度

    1回答

    我有,当你点击它就会出现在按钮一个按钮 链接的pickerView .. 我的问题是: 我不知道如何得到结果,并将其打印到textFiled我创建了.. 如果我可以使按钮名称中的结果不需要文本提交将是伟大的! 这就是我做了迄今: import UIKit import ActionSheetPicker_3_0 class ViewController2: UIViewController