如何识别 UIPickerView 上的滚轮旋转动画?

发布于 2025-01-02 17:52:53 字数 226 浏览 0 评论 0原文

我正在使用 iPhone 应用程序,其中我有一个场景,其中我必须确定当用户在 UIPIckerView 上的组件上滑动时轮子旋转动画何时开始。

我应该在哪里使用

[UIPickerView setAnimationWillStartSelector:@selector()];

方法来识别动画开始事件。

请任何人建议我一个解决方案来实现这一目标。

谢谢大家。

I am working with a iPhone app,where i have a scenario in which i have to identify when the wheel rotating animations starts when the user swipes over the component on the UIPIckerView.

Where should i use

[UIPickerView setAnimationWillStartSelector:@selector()];

method to identify the animation started event.

Please any body suggest me a solution to make this happen.

Thank you one and all.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

挽你眉间 2025-01-09 17:52:53

桑卡尔·钱达拉·博斯。您可以使用 UIPickerView 委托/数据源来识别 UIPickerView 滚轮旋转。

- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component

您可以从此委托获取 UIPickerView 滚轮滑动操作和当前行。我希望你能从我的回答中得到一些想法。谢谢。

Sankar Chandara Bose. You can identify the UIPickerView wheel rotation by using the UIPickerView delegate/datasource.

- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component

You can get the UIPickerView wheel swipe action and current row from this delegate. I hope you got any ideas from my answer. Thanks.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文