上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页
摘要: 卸载cocos2d-x:(将隐藏的模板文件删除掉)1、打开你mac终端,输入命令:显示Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles YES隐藏Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles NO输入回车,关闭终端。2、点击你mac桌面菜单的“小苹果”图标,选择“强制退出”菜单,然后选择“Finder”,然后选择“重新启动”。现在所有隐藏文件可以看到了,删除Xcode中的Cocos2d/Cocos2dX模版:/Users/xxx(用户名)/Libr 阅读全文
posted @ 2013-01-29 09:49 李伯波 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 1、获取&安装 sudo apt-get install make sudo apt-get install gccsudo apt-get install libssl-dev sudo apt-get install g++sudo make install http://mosquitto.org/files/binary/ 地址中获取。Windows系统下的安装过程非常简单,我们甚至可以把Mosquitto直接安装成为系统服务;但是,在实际应用中,我们更倾向于使用Linux系统的服务器,接下来我们就将重点介绍Linux版Mosquitto的安装方法。 在Linux系统上... 阅读全文
posted @ 2013-01-21 09:54 李伯波 阅读(2433) 评论(0) 推荐(0) 编辑
摘要: sudo apt-get install openssl sudo apt-get install libssl-dev 阅读全文
posted @ 2013-01-21 09:17 李伯波 阅读(528) 评论(0) 推荐(0) 编辑
摘要: http://blog.chinaunix.net/uid-25434387-id-333577.htmlhttp://blog.sina.com.cn/s/blog_629847620100kt5l.html 阅读全文
posted @ 2012-12-31 19:58 李伯波 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 1.运行逻辑代码:-(void)execBackrgoundMethod{ /* 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, 阅读全文
posted @ 2012-12-30 17:08 李伯波 阅读(230) 评论(0) 推荐(0) 编辑
摘要: mkdir 目录名 => 创建一个目录rmdir 空目录名 => 删除一个空目录rm 文件名 文件名 => 删除一个文件或多个文件rm –rf 非空目录名 => 删除一个非空目录下的一切touch 文件名 => 创建一个空文件重命名文件(夹) / 移动文件(夹)到指定文件夹执行格式: mv source destinationExample:mv file1 file2 => 将文件 file1,更改文件名为 file2。mv file1 dir1 => 将文件 file1,移到目录 dir1下,文件名仍为 file1。mv dir1 dir2 =&g 阅读全文
posted @ 2012-12-27 16:22 李伯波 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1.Range{location,length} 一维范围 NSRange a; a.length=10; a.location=6; NSRange range={10,6}; NSRange range1=NSMakeRange(10, 6);2.Point{x,y} 点 NSPoint point; point.x=10; point.y=11; NSPoint point1={20,10}; NSPoint point2=NSMakePoint(10, 20);3.Size{height,width} NSSize size; size.height=10; size.wid... 阅读全文
posted @ 2012-12-20 20:30 李伯波 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 从图片中获得某点颜色属性- (UIColor *) getPixelColorAtLocationCGPoint)point { UIColor* color = nil; CGImageRef inImage = self.image.CGImage; // Create off screen bitmap context to draw the image into. Format ARGB is 4 bytes for each pixel: Alpa, Red, Green, Blue CGContextRef cgctx = [self createARGBBitmapCon... 阅读全文
posted @ 2012-12-19 08:56 李伯波 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 用字符串来找方法:SEL 变量名 = NSSelectorFromString(方法名字的字符串);运行中用SEL变量反向查出方法名字字符串:NSString *变量名 = NSStringFromSelector(SEL参数);SEL变量的执行:[对象 performSelector:SEL变量 withObject:参数1 withObject:参数2]; 阅读全文
posted @ 2012-12-17 19:21 李伯波 阅读(139) 评论(0) 推荐(0) 编辑
摘要: iOS的应用程序的生命周期,还有程序是运行在前台还是后台,应用程序各个状态的变换,这些对于开发者来说都是很重要的。 iOS系统的资源是有限的,应用程序在前台和在后台的状态是不一样的。在后台时,程序会受到系统的很多限制,这样可以提高电池的使用和用户体验。//开发app,我们要遵循apple公司的一些指导原则,原则如下:1、应用程序的状态状态如下:Not running 未运行 程序没启动Inactive 未激活 程序在前台运行,不过没有接收到事件。在没有事件处理情况下程序通常停留在这个状态Active 激活 程序在前台运行而且接收到了事件。这也是前台的一个正常... 阅读全文
posted @ 2012-12-17 11:02 李伯波 阅读(239) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页