obj-c:iPhone 编程:以编程方式更改选择器视图上的选择 [英] obj-c: iPhone programming: change selection on pickerview programmatically

查看:21
本文介绍了obj-c:iPhone 编程:以编程方式更改选择器视图上的选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个选择器视图,我想添加一个代码,该代码将自动向用户显示我想要的行.

I got a pickerview and I want to add a code that will automatically show at the user the row I want.

推荐答案

使用 -selectRow:... 方法.

Use the -selectRow:… method.

[thePickerView selectRow:123 inComponent:0 animated:YES];

这篇关于obj-c:iPhone 编程:以编程方式更改选择器视图上的选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆