开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜