我运行cocos run的时候提示:jni/../../Classes/AppDelegate.cpp:67: error: undefined reference to 'GameMain::c
reateScene()', 最后出现错误提示:Ndk build failed!,其中GameMain是我自己写的代码,。
后来找到了原因,有两种解决办法:
第一种方法:在\pr...
分类:
其他好文 时间:
2015-08-19 00:41:28
阅读次数:
156
1.在工程中找到 info.plist 文件,点击“+”号,选择 View controller-based status bar appearance 并设为NO2.在AppDelegate.m添加一段代码:- (BOOL)application:(UIApplication *)applicat...
分类:
移动开发 时间:
2015-08-18 19:07:37
阅读次数:
124
#import #import "AppDelegate.h"int (^max)(int,int);//定义代码块,类似c的函数指针typedef void (^SayHello)(); //指定一个类型的代码块;int main(int argc, char * argv[]) { //通...
分类:
其他好文 时间:
2015-08-18 16:07:32
阅读次数:
89
#import #import "AppDelegate.h"int main(int argc, char * argv[]) { NSString *str=@"Hello OC";//普通字符定义 NSString *str1=[NSString stringWithFormat:...
分类:
其他好文 时间:
2015-08-18 15:48:00
阅读次数:
94
#import #import "AppDelegate.h"int main(int argc, char * argv[]) { //固定的字典类型 NSDictionary *dict=@{@"name":@"Netcorner",@"sex":@"male"}; NSLog...
分类:
其他好文 时间:
2015-08-18 15:47:26
阅读次数:
311
#import #import "AppDelegate.h"int main(int argc, char * argv[]) { //固定数组 NSArray *arr=@[@"Hello",@"Netcorner"]; for(int i=0;i<[arr count];i+...
分类:
编程语言 时间:
2015-08-18 15:42:26
阅读次数:
123
1.AppDelegate.h定义TabBarController#import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window;@property (strong, nonato...
分类:
移动开发 时间:
2015-08-18 13:38:20
阅读次数:
158
1.AppDelegate.h定义一个UINavigationController#import #import "MainViewController.h"@interface AppDelegate : UIResponder @property (strong, nonatomic) UIWi...
分类:
移动开发 时间:
2015-08-18 13:35:52
阅读次数:
196
一晚上的研究成果…… 之前只使用AppDelegate.m,视图控制器的创建和操作都是在其中完成的,一直报错:whose view is not in the window hierarchy。新建类ViewController后,将内容移至其中即解决问题。还是不太...
分类:
其他好文 时间:
2015-08-18 10:25:14
阅读次数:
206
首先在工程中导入MapKit.framework库文件1 #import 2 3 @interface AppDelegate : UIResponder 4 5 @property (strong, nonatomic) UIWindow *window;6 7 @end 1 #import "A...
分类:
移动开发 时间:
2015-08-17 23:19:05
阅读次数:
311