- Äɲ䵤줿¹Ô¤Ï¤³¤Î¿§¤Ç¤¹¡£
- ºï½ü¤µ¤ì¤¿¹Ô¤Ï¤³¤Î¿§¤Ç¤¹¡£
*TIPS
**¥·¥ß¥å¥ì¡¼¥¿¡¼¤È¼Âµ¡¤ò¾ò·ïÉÕ¤¥³¥ó¥Ñ¥¤¥ë¤Çʬ¤±¤ëÊýË¡
#if TARGET_IPHONE_SIMULATOR
NSString *hello = @"Hello, iOS simulator!";
#else
NSString *hello = @"Hello, iOS device!";
#endif
**iPhone¤ÈiPad¤Ç½èÍý¤òʬ¤±¤ëÊýË¡
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
NSLog(@"iPad¤Î½èÍý");
} else {
NSLog(@"iPhone¤Î½èÍý");
}
°úÍѸµ: [[iPhone¤ÈiPad¤òȽÊÌȽÄꤷ½èÍýʬ¤±¤¹¤ëÊýË¡ | ÏÂÍÎÉ÷>http://wayohoo.com/programming/objective-c/how-to-determine-the-ipad-and-iphone.html]]
*¥ê¥ó¥¯
-[[URL¥¹¥¡¼¥àʬ²ò¥é¥¤¥Ö¥é¥ê | Cocoa¤ÎÆü¡¹¾ðÊó¶É>http://cocoadays-info.blogspot.com/2013/02/url.html]]