[code:cpp]
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
// iPad の処理
}
else {
// iPad 以外の処理
}
[/code]
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
// iPad の処理
}
else {
// iPad 以外の処理
}
[/code]
ただし、”UI_USER_INTERFACE_IDIOM()” は、iOS 3.2 以降でのみ使用可能。