本文介绍了如何在电晕中开始新的活动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Corona的新手,并且在Eclipse上使用android sdk,但我不知道如何在一项活动中将一项活动传递给另一项活动?您在电晕上为此使用什么?

I am new on Corona and worked with android sdk on Eclipse but i don't know how to pass from one activity to another in this one? What do you we use for this on Corona?

推荐答案

使用Corona SDK时无法控制应用程序的活动.

You do not have control over activities of your app when using Corona SDK.

您需要的是 StoryBoard API ,它可以帮助您管理不同的场景.这是有关情节提要的一些链接.

What you need is the StoryBoard API which helps you to manage difference scenes.Here are a few links regarding storyboard.

http://www.coronalabs.com /blog/2011/11/14/introducing-the-storyboard-api/

http://www.coronalabs.com /blog/2012/03/27/storyboard-scene-events-explained/

http://developer.anscamobile.com/content/storyboard

http://www.coronalabs.com /blog/2011/11/16/common-storyboard-api-questions/

另一个非官方但真正有效和有用的方法是Director类

Another unofficial but really efficient and useful method is the Director class

http ://maniacdev.com/2011/05/using-the-director-class-for-easy-switching-in-the-corona-sdk/

http://developer.anscamobile.com/code/director-class-10

优点和缺点?

Director类非常简单且轻巧.而且它没有已知的错误.在几个月前引入Storyboard之前,它曾经是唯一的方法.故事板非常灵活,并得到正式支持.但是它是相对较新的并且有一些小错误.

Director class is very simple and lightweight. And it has no known bugs. Used to be the only way until Storyboard was introduced a few months ago.Story board is very flexible, and is officially supported. But it is relatively new and has some minor bugs.

这篇关于如何在电晕中开始新的活动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 01:40