摘要: “sgx error: background gpu access not permitted” 阅读全文
posted @ 2013-01-25 19:31 莫若静忘 阅读(252) 评论(0) 推荐(0) 编辑
摘要: MKStoreKit 3.0+ 内置付费的开源库Mugunth Kumar大神的英文iPhone Tutorial – In-App Purchases中文翻译的地址http://www.overcode.hk/?p=298MKStoreKit 4.0 非常简单 代码几乎几行就能搞定 比3.0用着方便多了里面详细介绍了 使用方式,源代码下载里面给出了连接,MKStoreKit4.0 使用简单介绍源码在https://github.com/MugunthKumar/MKStoreKitappdelegate.m文件中添加代码#import"MKStoreManager.h"在 阅读全文
posted @ 2012-12-26 17:49 莫若静忘 阅读(4707) 评论(2) 推荐(0) 编辑
摘要: If you haven't emptied the trash yet, close Xcode and open the Trash in Finder. Find the framework folder you accidentally deleted. In Finder, open another window for Macintosh HD\System\Library\Frameworks, and drag-copy the framework from the Trash to the Frameworks folder. Reopen Xcode and you 阅读全文
posted @ 2012-12-12 13:36 莫若静忘 阅读(211) 评论(0) 推荐(0) 编辑
摘要: if ([[UIDevice currentDevice].systemVersion floatValue] < 6.0) { //ios 5 [self.MainWindow addSubview:viewController.view]; }else{ //ios 6 [self.MainWindow setRootViewController:self.viewController]; [self orientationChanged]; } 1 //*旋转在横屏之间*/ 2 - (NSUInteger)s... 阅读全文
posted @ 2012-12-12 11:43 莫若静忘 阅读(837) 评论(0) 推荐(0) 编辑
摘要: 错误详细信息(在si'mular4.3运行的时候报错)dyld: Library not loaded: /System/Library/Frameworks/Accounts.framework/Accounts Referenced from: /Users/liujian/Library/Application Support/iPhone Simulator/4.3.2/Applications/986B6E48-D133-4EC4-B9F5-674BF086C3DA/GameEngine.app/GameEngine Reason: image not found修改 讲fr 阅读全文
posted @ 2012-12-12 11:14 莫若静忘 阅读(255) 评论(0) 推荐(0) 编辑
摘要: typedefstruct Test{int tag; float x; float y;}Test; Test test1; test1.tag = 1; test1.x = 2; test1.y = 3; NSValue* value_test = [NSValue value:&test1 withObjCType:@encode(Test)];//对结构体进行封装 Test test2;//声明test2,为了得到test1的值 [value_test getValue:&test2];//同类型赋值 NSLog(@"%s",@encode(Test 阅读全文
posted @ 2012-03-29 15:56 莫若静忘 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 第一个中能够读取将数值转换成字stringNSString* sceneName = [@"scene_" stringByAppendingFormat:@"%d.mid", sceneid];//字符串拼接第二个是的简单的string拼接NSString* abd = [@"ji"stringByAppendingString:@"adsfas" ];他们都只能拼接一次如果想多次拼接的话就要嵌套 NSString* fullName = [[@"img_"stringByAppendingF 阅读全文
posted @ 2012-03-23 15:08 莫若静忘 阅读(134) 评论(0) 推荐(0) 编辑