如何根据pickerView中选择的项目使用pickerView和UIbutton对象转到不同的视图

时间:2015-12-31 05:59:52

标签: ios iphone swift

@IBAction func EnterButton(sender: AnyObject) {

    func pickerView(pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int)
    {
        switch(row)
        {
        case 0:
            let SecondViewController:secondViewController = secondViewController()
            self.presentViewController(SecondViewController, animated: true, completion: nil)


        default:
            break

        }
    }

This what I want to do

0 个答案:

没有答案