Objective-C
Last-modified: 2018-11-14 (¿å) 15:23:55 (2214d)
Top / Objective-C
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¤òȽÊÌȽÄꤷ½èÍýʬ¤±¤¹¤ëÊýË¡ | ÏÂÍÎÉ÷
¥ê¥ó¥¯
- ¥°¥í¡¼¥Ð¥ëÊÑ¿ô¤òÄêµÁ¤·¤Æ»²¾È¤¹¤ë¡ÚObjective-C¡Û¡ÚÀë¸À¡Û | bekkou68¤ÎÆüµ
- URL¥¹¥¡¼¥àʬ²ò¥é¥¤¥Ö¥é¥ê | Cocoa¤ÎÆü¡¹¾ðÊó¶É
- Using enum types as properties in Objective C | stackoverflow
- [¥Æ¥ó¡ö¥·¡¼¡ö¥·¡¼]iPhone¥¢¥×¥ê³«È¯¡¢¤½¤Î(124)¡¡¥ª¡¼¥È¥¹¥¯¥í¡¼¥ë
- [²È²¥µ¡¼¥Ó¥¹¤Î¹ç´Ö¤ò¤Ì¤Ã¤Æ½ñ¤¯µ»½Ñ·Ï¤Î¥Ö¥í¥°]iPhone³«È¯¤¹¤ëºÝ¤Î¤Þ¤È¤á
- [¤ó¤Ñ¤«]iPhone¥×¥í¥°¥é¥ß¥ó¥°¥á¥â
- [Awaresoft]ÆüÉÕ¡¦»þ¹ï¡¦¥«¥ì¥ó¥À¡¼´ØÏ¢¤Î¤è¤¯»È¤¦½èÍý ... £±Æü¤Î³«»Ï¡¦½ªÎ»NSDate¥Ç¡¼¥¿¤Î¼è¤êÊý¤ä¡¢¥í¥±¡¼¥ëÊ̤Îɽµ¼è¤êÊý¤Ê¤É¿§¡¹TIPS¤¬½ñ¤«¤ì¤Æ¤¤¤ë¡£
- iOS¥¢¥×¥ê¤Çµ¯Æ°²ó¿ô¤ò¥«¥¦¥ó¥È¤¹¤ëÊýË¡ | TECH-GYM