问题描述
CrossApp中,整个工程的入口函数是AppDelegate,在AppDelegate中屏蔽了多平台之间的区别,从而实现了跨平台。 言归正传,CrossApp中修改默认打开的Window的方法和Cocos2d-x中是相似的,但是对于没有学习过Cocos2d-x的朋友,还是需要介绍一下。首先,需要修改一下AppDelegate.cpp中所导入的头文件:[cpp] view plain copy#include "AppDelegate.h" #include "RootWindow.h"<span style="font-size:18px;color:#666666;"> </span> 上边是修改之前的,将下边的RootWindow.h改成我们自己window的头文件 在这里我自己写的窗口的头文件是" MainMenuWindow.h"修改后:[cpp] view plain copy#include "AppDelegate.h" #include "MainMenuWindow.h" 接下来修改一下 bool AppDelegate ::applicationDidFinishLaunching()函数中的实现,这个函数是在程序载入完毕之后执行的。没修改前:http://www.iteye.com/problems/121435http://www.iteye.com/problems/121434http://www.iteye.com/problems/121432http://www.iteye.com/problems/121431http://www.iteye.com/problems/121429http://www.iteye.com/problems/121428http://www.iteye.com/problems/121426http://www.iteye.com/problems/121425http://www.iteye.com/problems/121799http://www.iteye.com/problems/121800http://www.iteye.com/problems/121798http://www.iteye.com/problems/121797http://www.iteye.com/problems/121796http://www.iteye.com/problems/121795http://www.iteye.com/problems/121794http://www.iteye.com/problems/121793http://www.iteye.com/problems/121792http://www.iteye.com/problems/121791http://www.iteye.com/problems/121790http://www.iteye.com/problems/121789http://www.iteye.com/problems/121788http://www.iteye.com/problems/121787http://www.iteye.com/problems/121786http://www.iteye.com/problems/121785http://www.iteye.com/problems/121784http://www.iteye.com/problems/121783http://www.iteye.com/problems/121782http://www.iteye.com/problems/121781http://www.iteye.com/problems/121780http://www.iteye.com/problems/121779http://www.iteye.com/problems/121778http://www.iteye.com/problems/121777http://www.iteye.com/problems/121776http://www.iteye.com/problems/121775http://www.iteye.com/problems/121775http://www.iteye.com/problems/121774http://www.iteye.com/problems/121773http://www.iteye.com/problems/121772http://www.iteye.com/problems/121771http://www.iteye.com/problems/121770http://www.iteye.com/problems/121769http://www.iteye.com/problems/121768http://www.iteye.com/problems/121767http://www.iteye.com/problems/121766http://www.iteye.com/problems/121765http://www.iteye.com/problems/121764http://www.iteye.com/problems/121763http://www.iteye.com/problems/121762http://www.iteye.com/problems/121761http://www.iteye.com/problems/121760http://www.iteye.com/problems/121759http://www.iteye.com/problems/121758http://www.iteye.com/problems/121757http://www.iteye.com/problems/121757http://www.iteye.com/problems/121756http://www.iteye.com/problems/121755http://www.iteye.com/problems/121754http://www.iteye.com/problems/121753http://www.iteye.com/problems/121752http://www.iteye.com/problems/121751http://www.iteye.com/problems/121750http://www.iteye.com/problems/121749http://www.iteye.com/problems/121748http://www.iteye.com/problems/121747http://www.iteye.com/problems/121746http://www.iteye.com/problems/121745http://www.iteye.com/problems/121744http://www.iteye.com/problems/121743http://www.iteye.com/problems/121742http://www.iteye.com/problems/121741http://www.iteye.com/problems/121740http://www.iteye.com/problems/121739http://www.iteye.com/problems/121738http://www.iteye.com/problems/121737http://www.iteye.com/problems/121736http://www.iteye.com/problems/121735http://www.iteye.com/problems/121734http://www.iteye.com/problems/121733http://www.iteye.com/problems/121732http://www.iteye.com/problems/121731http://www.iteye.com/problems/121730http://www.iteye.com/problems/121729http://www.iteye.com/problems/121728http://www.iteye.com/problems/121727http://www.iteye.com/problems/121726http://www.iteye.com/problems/121725http://www.iteye.com/problems/121724http://www.iteye.com/problems/121723http://www.iteye.com/problems/121722http://www.iteye.com/problems/121721http://www.iteye.com/problems/121720http://www.iteye.com/problems/121719http://www.iteye.com/problems/121718http://www.iteye.com/problems/121717http://www.iteye.com/problems/121716http://www.iteye.com/problems/121715http://www.iteye.com/problems/121714http://www.iteye.com/problems/121713http://www.iteye.com/problems/121712http://www.iteye.com/problems/121711http://www.iteye.com/problems/121710http://www.iteye.com/problems/121709http://www.iteye.com/problems/121708http://www.iteye.com/problems/121707http://www.iteye.com/problems/121706http://www.iteye.com/problems/121706http://www.iteye.com/problems/121705http://www.iteye.com/problems/121704http://www.iteye.com/problems/121704http://www.iteye.com/problems/121703http://www.iteye.com/problems/121702http://www.iteye.com/problems/121701http://www.iteye.com/problems/121699http://www.iteye.com/problems/121705http://www.iteye.com/problems/121700
解决方案
CrossApp编译错误There is no SDK with the name or path的解决办法。 有些用户在编译CrossApp创建的工程时候,会遇到找不到SDK的错误。 error: There is no SDK with the name or path '/Users/archer/Desktop/CrossApp-0.3.5/CrossApp/proj.mac/macosx10.8' 其实解决办法很简单: http://www.iteye.com/problems/121435 http://www.iteye.com/problems/121434 http://www.iteye.com/problems/121432 http://www.iteye.com/problems/121431 http://www.iteye.com/problems/121429 http://www.iteye.com/problems/121428 http://www.iteye.com/problems/121426 http://www.iteye.com/problems/121425 http://www.iteye.com/problems/121799 http://www.iteye.com/problems/121800 http://www.iteye.com/problems/121798 http://www.iteye.com/problems/121797 http://www.iteye.com/problems/121796 http://www.iteye.com/problems/121795 http://www.iteye.com/problems/121794 http://www.iteye.com/problems/121793 http://www.iteye.com/problems/121792 http://www.iteye.com/problems/121791 http://www.iteye.com/problems/121790 http://www.iteye.com/problems/121789 http://www.iteye.com/problems/121788 http://www.iteye.com/problems/121787 http://www.iteye.com/problems/121786 http://www.iteye.com/problems/121785 http://www.iteye.com/problems/121784 http://www.iteye.com/problems/121783 http://www.iteye.com/problems/121782 http://www.iteye.com/problems/121781 http://www.iteye.com/problems/121780 http://www.iteye.com/problems/121779 http://www.iteye.com/problems/121778 http://www.iteye.com/problems/121777 http://www.iteye.com/problems/121776 http://www.iteye.com/problems/121775 http://www.iteye.com/problems/121775 http://www.iteye.com/problems/121774 http://www.iteye.com/problems/121773 http://www.iteye.com/problems/121772 http://www.iteye.com/problems/121771 http://www.iteye.com/problems/121770 http://www.iteye.com/problems/121769 http://www.iteye.com/problems/121768 http://www.iteye.com/problems/121767 http://www.iteye.com/problems/121766 http://www.iteye.com/problems/121765 http://www.iteye.com/problems/121764 http://www.iteye.com/problems/121763 http://www.iteye.com/problems/121762 http://www.iteye.com/problems/121761 http://www.iteye.com/problems/121760