`
文章列表
将博客搬至CSDN

ios打印Frame值

NSLog(@”My view frame: %@”, NSStringFromCGRect(myView.frame));  
Just Click on your target Name beside stop button > Manage Schemes > Select and change name

Unity JS 添加iAd

iAd 
public var showOnTop:boolean = true; // banner on top or bottom of screen public var dontDestroy:boolean = false; // keep this GameObject around for next scene // don't make this a local variable, or else it'll get garbage collected private var banner:ADBannerView; function Start () { if ( ...
目标:把应用名为chris改为chalk.   1、建个ios工程,名为chris.   2、在build setting下搜索product name,把名字改为chalk     3、在plist下修改bundle display name为chalk      4、clean下demo,build。应用名已经改为chalk
MAC重装系统,开发证书没有备份,加上iDP即将过期,在重新导入证书的过程中遇到了一些小麻烦,比如 Xcode 4.4.1 中的证书出现 Valid Signing Identity not found,现记录一下(仅适用于重新生成证书者,不适用首次配置证书联机调试及发布,有此需要请自行搜索) 生成私有证书,打开钥匙串,钥匙串访问 – 证书助理 – 从证书颁发机构请求证书…,填入iDP邮箱及常用名称(在 iOS Dev Center 页面的 Hi, XXX 处查找,其中XXX为常用名称),选存储到磁盘,得到 CertificateSigningRequest.certSigningRequ ...
Windows:  C:\Users\xxx\AppData\Local\Google\Chrome\User Data\Default\Extensions   Mac: /Users/xxx/Library/Application Support/Google/Chrome/Default/Extensions   xxx替换为用户名

cocos2d backup

 
https://github.com/cocos2d/cocos2d-iphone-extensions Learning Cocos2D Resources and Source Code SpriteFun 演示(添加sprits) http://www.supersuraccoon-cocos2d.com/zh/2011/06/05/spritefun-demo/   “激光效果”演示 http://www.supersuraccoon-cocos2d.com/zh/2011/07/04/simple-laser-demo-a-usage-of-ccprogressto/   Fl ...
iRate https://github.com/nicklockwood/iRate
1,模拟器运行完全没问题,真机运行失败。 有时候我们在模拟器上运行程序时,不会发现任何问题,但当我们放到真机上测试时,就会发生错误,此时是什么原因呢?以我的发现可能是下面的原因, 1,因为真机测试的时候,是识别大小写的,所以首先检查你程序中的资源(图片,音乐……)的扩展名是小写的,然而在代码中你写成了大写,比如有一张图片,在程序中是test.png,然而你在代码中却写成了test.PNG。如果你改正确了,那么恭喜你。如果还是不行,确定不是这方面原因了,那么…… 2,未完待续…… 2,Code Sign error:Provisioning profile '**^ (更新证书错误) ...
/* NSUserDefaults 可以用來儲存使用者的偏好設定(它會被存成一個 .plist 檔案),你可以把它想成是 iOS app 的 localStorage,而且 NSUserDefaults 不只可以儲存字串,還可以儲存任何 Objective-C data type。  */   // 你得先宣告一個 NSUserDefaults 物件,在同一個 app 裡,它是 singleton(單例) NSUserDefaults *userPrefs = [NSUserDefaults standardUserDefaults];   // set [userPrefs s ...
1. 点击程序的Info.plist 2. 右键点击任意一处,选择Add Row,选择UIStatusBarHidden或者Status bar is initially hidden,取值为YES。
打開utilities 視窗點選file type選單挑選合適的類型(Application bundle)即可
Interested in mobile game development? This list of 10 open-source, iOS game projects available on GitHub will help get you started! The projects compiled in this list range from clones of classic games like Pong and Connect Four to apps that are very similar to those that have recently topped App ...
Global site tag (gtag.js) - Google Analytics