Alexander Tkachenko
Alexander Tkachenko

Reputation: 3281

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

how can i get the type of device, which is launched my application? i want to show different scenes(one for iphone and another for ipad) for different devices

Upvotes: 0

Views: 748

Answers (2)

Vin
Vin

Reputation: 10548

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

Upvotes: 1

Tom Tu
Tom Tu

Reputation: 9593

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

learn to love your cocos2d forums

Upvotes: 1

Related Questions