2019独角兽企业重金招聘Python工程师标准>>>

lae sdk相关文件放在lae目录下, 已经下载过的同学,请更新一下。

laetool 下载地址:https://github.com/ouloba/laetool.git

1、建立新的工程.

2、起个产品名字.

3、把AppDelegate.m修改为AppDelegate.mm,

4、修改头文件如下

//
//  AppDelegate.h
//  LaeApp
//
//  Created by 廖锡州 on 16/7/27.
//  Copyright  2016年 廖锡州. All rights reserved.
//#import <UIKit/UIKit.h>@class EAGLView;
@class ViewController;@interface AppDelegate : UIResponder <UIAccelerometerDelegate, UIAlertViewDelegate, UITextFieldDelegate,UIApplicationDelegate>{UIWindow *window;EAGLView *eaglView;ViewController    *viewController;
}@property (strong, nonatomic) UIWindow *window;@end

5、修改源文件AppDelage.mm代码如下

//
//  AppDelegate.m
//  LaeApp
//
//  Created by 廖锡州 on 16/7/27.
//  Copyright  2016年 廖锡州. All rights reserved.
//#import "AppDelegate.h"
#import <lae/EAGLView.h>
#import "ViewController.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {// Override point for customization after application launch.// Add the view controller's view to the window and display.window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen] bounds]];CGRect frame = [[UIScreen mainScreen] bounds];// CGFloat scale_screen = [UIScreen mainScreen].scale;// frame.size.height = frame.size.height*scale_screen;// frame.size.width  = frame.size.width*scale_screen;eaglView = [EAGLView initWithFrame: frame];// Use RootViewController manage CCEAGLViewviewController = [[ViewController alloc] initWithNibName:nil bundle:nil];viewController.wantsFullScreenLayout = YES;viewController.view = eaglView;//// [window addSubview: viewController.view];// [window setRootViewController:viewController];// Set RootViewController to windowif ( [[UIDevice currentDevice].systemVersion floatValue] < 6.0){// warning: addSubView doesn't work on iOS6[window addSubview: viewController.view];}else{// use this method on ios6[window setRootViewController:viewController];}[window makeKeyAndVisible];[[UIApplication sharedApplication] setStatusBarHidden: YES];// IMPORTANT: Setting the GLView should be done after creating the RootViewController//cocos2d::GLViewImpl *glview = cocos2d::GLViewImpl::createWithEAGLView(eaglView);//cocos2d::Director::getInstance()->setOpenGLView(glview);//app->run();eaglView.animationInterval = 1.0 / 60.0;[eaglView startAnimation];return YES;
}- (void)applicationWillResignActive:(UIApplication *)application {// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}- (void)applicationDidEnterBackground:(UIApplication *)application {// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.ICGuiPause();ICGuiDestroy();
}- (void)applicationWillEnterForeground:(UIApplication *)application {// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.ICGuiResume();
}- (void)applicationDidBecomeActive:(UIApplication *)application {// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.[EAGLView sharedInstance].animationInterval = 1.0 / 60.0;ICGuiResume();
}- (void)applicationWillTerminate:(UIApplication *)application {// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}@end

6、删除Main.storyboard,同时删除info.plist中相关设置(点击如下图中的减号)。

7、修改Bitcode设置,设置为No.

8、添加相关framework和静态库。

9、添加项目资源文件.如2048游戏资源包,同时加入字体文件

目前SDK不支持simulator,所以需要真机调试。万事俱备只欠东风,选择iPhone真机,然后点击运行,大功告成!

运行如下

转载于:https://my.oschina.net/u/1030910/blog/719083

lae界面开发工具入门之介绍十二--iOS系统如何编译打包?相关推荐

  1. NC运维人员拓展知识 之 开发工具入门(一)

    对于NC系统运维人员,通常情况下接触到较多的是NC前端问题处理,问题集中于业务之上.但是有时也会出现系统报错,例如,"****Exception",甚至出现"未知的错误& ...

  2. Xamarin Anroid开发教程之Anroid开发工具及应用介绍

    Xamarin Anroid开发教程之Anroid开发工具及应用介绍 Xamarin开发Anroid应用介绍 如今智能手机已经盛行了好几年,而针对这些智能手机的软件开发也变得异常火热.但是在Andro ...

  3. Android界面开发工具DroidDraw

    用Eclipes开发Android程序设计界面,如果界面的布局需要一行一行输入,那么将会使人很郁闷.现在有个工具可以帮你完成这些操作--Android界面开发工具DroidDraw.DroidDraw ...

  4. ASP.NET开发工具Web Matrix介绍

    ASP.NET开发工具Web Matrix介绍 作者:arui 主页:http://blog.csdn.net/arui319 一.开篇语 通常,一说到ASP.NET编程,我们大多数人都会想到微软的V ...

  5. python界面开发哪个好用_python界面开发工具哪个好?

    俗话说,好刃才能成好刀,找到适合自己的且功能全面的pytho界面开发工具也一样如此,满足项目使用,我们才能有效率,制作完美的项目工程,然而关于界面开发工具有很多,我们要怎么去选择呢?哪个才是最好的呢? ...

  6. 【无限互联】iOS开发视频教程—2.1 iPhone开发之开发工具安装及介绍

    核心内容: 1. iPhone开发工具下载 2. Apple开发者网站如何阅读 3. Xcode的下载,模拟器和内存分析工具的使用 4. windows下如何开发iPhone程序,安装虚拟机 视频地址 ...

  7. PyQt5可视化编程-图形界面开发工具QtDesigner和PyUIC

    一.概述 Qt库是跨平台的 C++库的集合,是最强大的 GUI库之一,可以实现高级 API来访问桌面和移动系统的各种服务.PyQt5是一套 Python绑定 Digia QT5应用的框架.PyQt5实 ...

  8. 【第3版emWin教程】第34章 emWin6.x的AppWizard界面开发工具使用方法

    教程不断更新中:http://www.armbbs.cn/forum.php?mod=viewthread&tid=98429 第34章       emWin6.x的AppWizard界面开 ...

  9. 深度学习入门笔记(十二):深度学习数据读取

    欢迎关注WX公众号:[程序员管小亮] 专栏--深度学习入门笔记 声明 1)该文章整理自网上的大牛和机器学习专家无私奉献的资料,具体引用的资料请看参考文献. 2)本文仅供学术交流,非商用.所以每一部分具 ...

  10. IM开发快速入门(一):什么是IM系统?

    本文在编写时参考了博客作者"鹿呦呦"和在线课程"即时消息技术剖析与实战"的相关资料,一并表示感谢. 1.系列文章引言 IM系统看似简单(没错,很多土老板认为开发 ...

最新文章

  1. python之局部变量引用赋值前的结果
  2. mongodb php 存储文件大小,PHP MongoDB GridFS 存储文件的方法详解
  3. [c++] vector<vector<int>>排序
  4. TP-LINK WN823N 无线驱动 ubuntu
  5. 免费数据集获取加速器|Graviti Open Datasets
  6. git提交远程报错[rejected] master - master (fetch first)
  7. 【Shiro】六、Apache Shiro Session管理
  8. linux停止项目,Antergos Linux 宣布已经停止维护
  9. VO中的Long类型数据通过注解的方式直接转换为String,防止数据失真
  10. 数据库mysql的注释怎么加_mysql表如何添加字段注释
  11. mysql里类似sequence_MySql中实现类似Oracle的Sequence方案
  12. Javaweb基础-SQL增删改查
  13. mysql读mdf_mdf文件导入mysql,mysql怎么导入mdf文件 | 帮助信息-动天数据
  14. 容积卡尔曼滤波算法 CKF
  15. Go语言学习日记【十八】golang中context包简介与使用
  16. 基于RSelenium爬取中国裁判文书网文书数据
  17. 【Matlab学习手记】多元非线性回归
  18. R 计算变量之间的相关性
  19. Eolink: 一站式 API 生产力工具
  20. 滴水三期:day44.2-虚函数表

热门文章

  1. 安卓版恶搞锁suo机生成器(百度云)
  2. windows10打开excel显示灰色的解决方案
  3. Camunda 动态增加会签
  4. 全面了解WDM波分复用
  5. FSA(有限状态自动机)python代码实现 自然语言处理作业
  6. 第四届蓝桥杯真题决赛java本科组
  7. matlab里det函数的神奇bug
  8. Shake Shack新店推出专为狗狗研制的冰激凌;素食“鱼肉”三明治挑战赛百味;植物肉品牌v2登陆中国市场...
  9. 应用程序-特定权限设置_在您的应用程序中管理付款:设置网站-代码
  10. 黑苹果EFI引导启动文件,技嘉Z77P-D3+E3-1230 V2+蓝宝石RX560D+Macos10.15.x(5)