cocos2d-x引擎发展的日益完善,更新了很多小工具。这个Console模块是一个控制台调试工具,可以实现远程调试,用用还是蛮有意思的。看AppDelegate.cpp里面的代码 // Enable Remote Console
auto console = director->getConsole();
console->listenOnTCP(5678);恩,客户端里面只...
分类:
其他好文 时间:
2015-05-08 16:33:19
阅读次数:
140
// AppDelegate *appDelegate = (AppDelegate *)[UIApplication sharedApplication].delegate;// NSArray *snsNames = [NSArray arrayWithObjects:// ...
分类:
其他好文 时间:
2015-05-07 15:58:41
阅读次数:
105
转载自 http://blog.csdn.net/wanggsx918/article/details/252151831、在appDelegate中添加一个切换的方法switchRootViewController: - (BOOL)application:(UIApplication *)...
分类:
移动开发 时间:
2015-05-07 10:02:07
阅读次数:
128
1 #import "AppDelegate.h" 2 3 @interface AppDelegate () 4 { 5 UISlider* lider; 6 } 7 8 @end 9 10 @implementation AppDelegate 11 ...
分类:
其他好文 时间:
2015-05-06 21:07:19
阅读次数:
235
APPDelegate里面的两个方法
- (void)applicationDidEnterBackground:(UIApplication *)application {
// 进入后台
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
// 回到前台
}
so:
1:设置 个 b...
分类:
其他好文 时间:
2015-05-06 15:08:32
阅读次数:
80
1:统一修改导航栏的样式,在AppDelegate.m中- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self.wind...
分类:
移动开发 时间:
2015-05-05 23:23:01
阅读次数:
234
UIwindow 的学习层级关系测试代码:@interface AppDelegate ()@property (nonatomic, strong) UIWindow *arlewWindow;@property (nonatomic, strong) UIWindow *norWindow;@p...
我先说一下我的问题,cocos2dx调用android浏览器下载新版本时,出现按钮来回闪动,我的问题是,调用android时,没有在runOnUiThread中运行。
网上的意见是在AppDelegate里面的applicationDidFinishLaunching()添加pDirector->setProjection(kCCDirectorProjection2D);和CCDirector...
分类:
移动开发 时间:
2015-05-05 10:43:38
阅读次数:
192
在appdelegate.m中找到“application:didFinishLaunchingWithOptions:”方法,添加以下代码:if(![[NSUserDefaultsstandardUserDefaults]boolForKey:@"everLaunched"]){[[NSUserD...
分类:
移动开发 时间:
2015-05-04 01:02:51
阅读次数:
150
接着上一篇的Blog讲,在我们自定义了TableViewCell之后,我们可能需要点击cell里面的button等操作,比如点击了以后跳转到别的页面,这个时候,因为跳转动作是在tableview所在的viewcontroller(假设为A类)实现的,所以,我们需要在tablewViewCell类里面调用A类的一个实例,这个实例一般是通过AppDelegate类实现的。
具体来看一下实现过程。
...
分类:
移动开发 时间:
2015-05-03 19:02:34
阅读次数:
147