我正在尝试使用cocos2d引擎为iphone构建游戏.我想知道如何区分用户是使用iphone 4还是iphone 3,因为我想加载iphone4的高分辨率图形和iphone 3的低分辨率.我知道我是否使用@ 2x.png如果我正在使用iphone 4,则图像文件名UIImage的末尾会自动加载高分辨率图像,但对于游戏,我使用cocos2d引擎的CCSprite类来加载图形.
我真的很感激回复.
此致,Ankur
我无法隐藏我的应用程序的iphone相机快门打开动画.我正在使用UIImagePickerController访问iphone相机并使用我自己的覆盖控制器.有没有办法在相机启动时删除初始快门(也称为光圈)动画.谢谢
[编辑]
对于那些想知道改变相机虹膜动画的方法.
在相机光圈动画开始之前调用以下功能.
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
// Here is were I make the camera preview fit the entire screen.
// This might violate the "don't change the view hierarchy"-rule.
// So I am not sure if it is valid for App Store commitment.
// However, the NSLogs are used to
// figure out which subview is the actual Camera Preview which turns out
// to be the PLPreviewView. (uncomment to se the printouts).
// Change …Run Code Online (Sandbox Code Playgroud) iphone camera objective-c uiimagepickercontroller iphone-sdk-3.0