2014年11月25日
摘要: 安装完xcode6.1后,将其改名为Xcode6.1.app,再移动个位置,启动模拟器,问题来了:Unable to boot device in current state: Creating解决办法:You will need to delete this device from your si... 阅读全文
posted @ 2014-11-25 21:11 PowerAuras 阅读(987) 评论(0) 推荐(0) 编辑
  2014年10月15日
摘要: 打印xcode位置:xcode-select -print-path重新设置xcode位置 sudo xcode-select -switch /Applications/Xcode/Xcode6.0.1.app 阅读全文
posted @ 2014-10-15 20:24 PowerAuras 阅读(320) 评论(0) 推荐(0) 编辑
  2013年11月30日
摘要: 经过一番周折,终于在xcode5上实现了一个简单的自定义模板,在项目中集成NSLogger库(增强NSLog的功能,https://github.com/fpillet/NSLogger)——新建项目中自动加入LoggerClient.h,LoggerClient.m ,LoggerCommon.h以及一些Frameworks。 如果从零开始定义一个模板,未免太过复杂,最简单的方法就是把系统模板复制过来修改^_^。 系统模板路径://路径1Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library... 阅读全文
posted @ 2013-11-30 12:25 PowerAuras 阅读(2749) 评论(0) 推荐(2) 编辑
  2013年11月27日
摘要: Two ways :方法1:copy all the files into your project. --下载https://github.com/rs/SDWebImage。 --把SD项目copy到本地项目中,删除SD项目中的Examples。 --导入ImageIO.framework、MapKit.framework。 --如果本地项目未使用arc,则Compiler Flags中-fobjc-arc。方法2:import the project as a static library. --下载https://github.com/rs/SDWebImage/releas... 阅读全文
posted @ 2013-11-27 13:57 PowerAuras 阅读(1301) 评论(0) 推荐(0) 编辑
  2013年9月17日
摘要: 以前在cocos2d-x项目中用到json解析,集成了libjson库后发现网上提供的解析方法大多是在解析过程中取得值,并没有将解析结果有效的保存起来,于是摸索一番,把解析结果根据数据格式存到数组或字典当中。 不敢独享,代码奉上:using namespace std;void JsonUtil:: parseArrJSON(JSONNODE *n,CCObject **obj){ if (n == NULL) { CCLOG("Invalid JSON Node\n"); return; } bool isAry=false; ... 阅读全文
posted @ 2013-09-17 23:30 PowerAuras 阅读(1932) 评论(1) 推荐(0) 编辑
  2013年9月16日
摘要: KVC 一直没仔细看过KVC的用法,想当然的认为可以在NSObject对象中存入任意键值对,结果使用时碰到问题了。 一个简单的位移动画:CAKeyframeAnimation *keyPosi=[CAKeyframeAnimation animationWithKeyPath:@"position"];keyPosi.path=path.CGPath;keyPosi.delegate=self;[label.layer addAnimation:keyPosi forKey:@"x"]; 我想要在动画结束后把UILabel从屏幕上移除,于是加上动画结束后 阅读全文
posted @ 2013-09-16 13:02 PowerAuras 阅读(1078) 评论(0) 推荐(1) 编辑