开发者

How to get the type of device(iphone or ipad) in cocos application?

开发者 https://www.devze.com 2023-02-06 12:49 出处:网络
how can i get the type of device, which is launch开发者_如何学编程ed my application? i want to show different scenes(one for iphone and another for ipad) for different deviceshttp://www.cocos2d-iphone

how can i get the type of device, which is launch开发者_如何学编程ed my application? i want to show different scenes(one for iphone and another for ipad) for different devices


http://www.cocos2d-iphone.org/forum/topic/8107 reply no. 2 by petrusali

learn to love your cocos2d forums


Checkout the UIDevice class. Look for UIUserInterfaceIdiomPad. Using this you can identify whether the device in question is a iPad

0

精彩评论

暂无评论...
验证码 换一张
取 消