我如何使用选择器视图在iphone应用程序使用cocos2d? [英] How can I use picker view in iphone application using cocos2d ?

查看:147
本文介绍了我如何使用选择器视图在iphone应用程序使用cocos2d?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用cocos2d开发一个项目(老虎机游戏)。我需要添加选择器视图来旋转卷轴(图像链)。但我不能这样做旋转。如果你有一个解决方案,请给我的指示,我该如何使用选择器视图或没有选择器视图。请帮助指导我。

I am working on a project ( Slots Game ) using cocos2d. I need to add picker view to rotate the reel ( image chain ). But I can not doing this rotation.If you have a solution for this please give me the instruction that how can I do this using picker view or without picker view. Please ans me with help instruction.

推荐答案

我也正在开发一个基于老虎机的项目。我试图操纵UIPicker,但这是无法得到什么正是老虎机的外观,所以我决定使用UIScrollView和UIImageView。这很棒,工作正常,我们需要只导航图像,因为我们想要的。

I am also working on a project that is based on slot machine. i have tried to manipulate UIPicker but this is unable to get what the exactly slot machine looks like, so i have decided to use UIScrollView and UIImageView. This comes out great, working fine, we need to only navigate the images as we want.

对于随机数,我创建了一个类,生成随机数,

For random number i have created a class that generate the random number as per my algorithm.

感谢,
Abu

Thanks, Abu

这篇关于我如何使用选择器视图在iphone应用程序使用cocos2d?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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