1.使用自動適配的HD模式,沒法加載資源
提供了HD資源,但沒有提供SD資源,例如:提供了XXXX-hd.png,但沒有提供普通的XXXX.png。注意該錯誤復現率不穩定,必須刪除手機中的軟件,並且clean項目後才有高幾率復現。
- pDirector->enableRetinaDisplay(true);
分析: 老版iOS,主要指5.x之前,和5.x的編譯參數不同,主要是armv6和armv7的區別,首先按照這個帖子檢查自己的設置: http://stackoverflow.com/questions/6378228/switching-from-xcode3-to-xcode4-cant-load-programs-onto-older-ipod-touch 確認無誤後,在building setting裡面的Architectures中,添加參數armv6
- unknown lockdownd[16] <Error>: 2ff68000 handle_connection: Could not receive USB message #6 from Xcode. Killing connection
- - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
- // return UIInterfaceOrientationIsLandscape( interfaceOrientation );
- return interfaceOrientation == UIInterfaceOrientationPortrait; //填寫你需要鎖定的方向參數
- // switch to this line if you want to set portrait view
- // return UIInterfaceOrientationIsPortrait( interfaceOrientation );
- }
本文出自 “老G的小屋” 博客,請務必保留此出處http://4137613.blog.51cto.com/4127613/819677