基礎知識(要確認) † プロパティの初期値は0かnil nilはオブジェクト用、NULLはプリミティブのポインタ用 nilオブジェクトへのメッセージ送信はランタイムによって処理され、ほぼ無視して進む ↑ 実行環境による処理分岐 † #if TARGET_IPHONE_SIMULATOR //最小下位互換バージョンと最大上位互換バージョンを調べて分岐 #if __IPHONE_OS_VERSION_MIN_REQUIRED < 40000 #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2 if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { } else { } #else #endif //iOSバージョンを調べて分岐 if ([[[UIDevice currentDev