@interface MyClass - (void)sayHello; @end @implementation MyClass - (void)sayHello{ NSLog(@"Hello Swift, Goodbye Obj-C!"); } @end Swift class MyClass { func sayHello() { print("Hello Swift, Goodbye Obj-C!") } }
ã¤ãã¼æ ªå¼ä¼ç¤¾ã¯ã2023å¹´10æ1æ¥ã«LINEã¤ãã¼æ ªå¼ä¼ç¤¾ã«ãªãã¾ãããLINEã¤ãã¼æ ªå¼ä¼ç¤¾ã®æ°ããããã°ã¯ãã¡ãã§ããLINEã¤ãã¼ Tech Blog ã©ãããã¤ãã¼ã®ä½éï¼ @taketo1024 ï¼ã§ããå æ¥å¼ã£è¶ãããã¾ãã¦ãå¼µãåã£ã¦èªåã§ã¿ã³ã¹ãéãã ããã¦ä»ã¨ã¦ãçèçã§ãã çãã㯠Objective-C ãã Swift ã¸ã®ç§»è¡ã¯é²ãã§ãã¾ããï¼å¼ç¤¾ã§ã¯ã¾ã Obj-C ã§æ¸ããã¦ããããã¸ã§ã¯ãã¯å¤ãããã¾ããä¸ã«åºã¦ãã iOS ã¢ããªãå¤ãã¯ã¾ã Obj-C ã§ä½ããã¦ããããããªããã¨æãã¾ãã Swift ããªã¼ãã³ã½ã¼ã¹åããããã®å ãã®é²åã®ã¹ãã¼ãã¯ããã«å¢ãã¦ããã¯ãã§ããããã§ãã¼ã å ã§éçºãé²ãã¦ãã Obj-C â Swift ã³ã³ãã¼ã¿ ãå¤§å¹ ã«æ¹è¯ããªã¼ãã³ã½ã¼ã¹ã§å ¬éãããã¨ã«ãã¾ããï¼ãã®è¨äºã§ã¯ãã®å°å ¥ã¨æ´»ç¨ã®æ¹æ³ã説æãã¾ã
æµ·å¤äºæ¥åãã®iOSã¢ããªã±ã¼ã·ã§ã³éçºãæ å½ãã¦ãã西山(@yuseinishiyama)ã§ããã¯ãã¯ãããã¯ç¾å¨ãæµ·å¤è¤æ°ã«å½ã«åãã¦ãµã¼ãã¹ãå±éãã¦ãã¾ãã 主ã«Objective-Cã§è¨è¿°ãããã¢ããªã±ã¼ã·ã§ã³ãå ¨é¢çã«Swiftã«æ¸ãæããæ©ä¼ããã£ãã®ã§ããã®éã«å¾ãç¥è¦ãæ¸ãæããã«è³ã£ãåæ©ãå ±æãã¾ãã æ¸ãæãã«è³ãã¾ã§ã®çµç·¯ ãã®é ã§ã¯ãæ¸ãæãã«è³ãã¾ã§ã®çµç·¯ã«ã¤ãã¦èª¬æãã¾ãã Objective-Cæ ã¢ããªã±ã¼ã·ã§ã³ã®éçºã¯2014å¹´7æé ã«ã¹ã¿ã¼ããã¾ãããSwiftã®çºè¡¨ç´å¾ã§ããããææå°æ©ã¨ãããã¨ããããObjective-Cã§å®è£ ãããã¨ã«ãªãã¾ããã Objective-CãSwiftæ··å¨æ 2014å¹´10æé ãããSwiftã¸ã®æ®µéçãªç§»è¡ã®ããã«ãæ°è¦ã®ã³ã¼ããSwiftã§æ¸ãããã«ãªãã¾ãããSwiftã®è¨è¿°åãããããã¨å®è£ ãè¡ãæ¥ããª
iOSã¢ããªã®ã³ã¼ãã£ã³ã°è¦ç´ãèããæã¯GoogleãããNYTimesã®Objective-Cã¹ã¿ã¤ã«ã¬ã¤ããåèã«ãã¹ã By raimon, 2015-03-21(å), in category Ios Googleã®ã¹ã¿ã¤ã«ã¬ã¤ãã¯å¤ã è¤æ°äººã§iOSã¢ããªãObjective-Cã³ã¼ãã§æ¸ãã¦ä¿å®ããæãã³ã¼ãã£ã³ã°è¦ç´ãæ¤è¨ãããã¨ã«ãªãã åèã«ãã¹ãã¹ã¿ã¤ã«ã¬ã¤ãã¨ãã¦è¯ãæãããã®ã«Google Objective-C Style Guideãããããããã¯ãããããå¤ããã¡ã¢ãªç®¡çARCãNSNumberã®ãªãã©ã«æ§æãªã©ãæ¯è¼çæ°ãããããã¯ã«ã¤ãã¦ã追è¨ããã¦ã¯ãããã ã¤ã³ã¹ã¿ã³ã¹å¤æ°ã®ã¢ã¯ã»ã¹ä¿®é£¾å ããããã£ã使ãäºã主æµã¨ãªã£ã¦ãã2015å¹´ç¾å¨ãä½ãæ±ãããªã autorelease ã使ã£ããªãã¸ã§ã¯ãçæãªã©ãMRCæ代ã®è¦ç´ ä½ãããã¹ãã£ã³ã°å ã
å æ¥ Go Memoã¨ããiOSã¢ããªããªãªã¼ã¹ãã¾ããã ããã¨ã§è¡ããããã®ã¢ããªãGo Memoããªãªã¼ã¹ãã¾ãã Go Memoã¯é±æ«4æ¥éãããã§ä½ã£ã¦ãªãªã¼ã¹ããã¢ããªãªã®ã§ããããããã¦ã¹ãã¼ããåºããã®ã¯ä¾¿å©ãªã©ã¤ãã©ãªã®ãããã§ãã ãã®è¨äºã§ã¯Go Memoã§ä½¿ã£ãã©ã¤ãã©ãªãç´¹ä»ãããã¨æãã¾ãã 便å©ãªiOSã©ã¤ãã©ãª AFNetworking è¨ããã¨ãããå®çªã©ã¤ãã©ãªãä½è ã® mattt ãããé常ã«æåã§ãããµã¼ãã¼ã¨ã®HTTPéä¿¡ã¯ã»ã¨ãã©ããã«é ¼ã£ã¦ãã¦ãNSURLSession ã¨ãèªåã§æ¸ãã¦ãªãã§ãã Go Memoã§ã¯ foursquare API ããããæã§å©ç¨ãã¦ãã¾ãã NSDictionary *params = ...; AFHTTPRequestOperationManager *manager = [AFHTTPRequestOp
As a local variable: returnType (^blockName)(parameterTypes) = ^returnType(parameters) {...}; As a property: @property (nonatomic, copy, nullability) returnType (^blockName)(parameterTypes); As a method parameter: - (void)someMethodThatTakesABlock:(returnType (^nullability)(parameterTypes))blockName;
æ¥å¸¸çãªã³ã¼ãã¬ãã¥ã¼ã§æ°ãã¤ãã¦ãããã¨ãªã¹ãã§ããGitHubä¼è°(ä»®)ã§çºè¡¨ãããã¨æã£ã¦ããã®ã§ãããæ¥ç¨ã®é½åã§åå ã§ããªãã®ã§ãæ¸ãããã¦ãããã¡ã¢ãå ¬éãã¾ããã¾ãã©ããã§çºè¡¨ããããããã¾ããã AutoLayoutã«ã§ããªãã AutoLayoutåããæ¹ããã£ããããããªãAutoLayoutåãã AutoLayoutåã§ããããªãã®ã§ãã£ã¦ããªããã®ã¯ããªãã³ã¼ãã§å®è£ ããã質åãã ä¾ãã°UITableViewCell ã¡ããã¨çç±ãããã°å¥ã«è¯ããã³ã¼ãã®æ¹ãè¯ããã¨ãå¤ã UIAppearanceã§è§£æ±ºã§ããªãã åã¯ã©ã¹ã®ä¸ã«ã¹ã¿ã¤ã«ã®æå®ãå ¥ããããUIAppearanceã§ã¹ã¿ã¤ã«æå®ãåé¢ãã¦å¥ã¯ã©ã¹ã«æ¸ãæ¹ããã¶ã¤ãã¼ãå¼ããããã¦è¯ã 3.5ã¤ã³ã端æ«ãèæ ®ããã¦ããã ã¬ã¤ã¢ã¦ãã決ãæã¡ã ã¨ããã§åé¡ãåºããã¨ãå¤ã çä¿¡ã¹ãã¼ã¿ã¹ãã¼ãèæ ®ã
æè¿è©±é¡ã®ã·ã³ãã«ï¼ãªã¼ããã«ãªObjective-C âModern Objective-Câã«ã¤ã㦠ä¸åº¦ã¡ããã¨èª¿ã¹ããã¨æã£ã¦ãã®ã§è¨äºã«ãã¦ã¿ã¾ããã æ¬ã¨ã³ããªã§ã¯ãModern Objective-Cã«ãªãã¨ä½ãã©ãå¬ããã®ãã å¤ãæ¸ãæ¹âLegacyâã¨æ°ããæ¸ãæ¹âModernâã®æ¯è¼ãéãã¦è¦ã¦ããã¾ãã ã¡ãªã¿ã«ãModern Objective-Cã®è©³ç´°ã«ã¤ãã¦ã¯ãiOS Dev Centerã«ã¦å ¬éããã¦ãã WWDC 2012ã®ä¸è¨ã®ã»ãã·ã§ã³ã®è³æã«ã¦è©³ãã説æããã¦ãã¾ãã Modern Objective-C (Patrick C Beard / Session 405) Migrating to Modern Objective-C (Session 413) ã¾ããæ¥æ¬èªæ å ±ã¨ãã¦ã¯ä¸è¨ã®ã¨ã³ããªãåèã«ãªãã¾ãã ä»æ¥ããã©ã¤ãªã³ã§ã使ããï¼XCO
ãããããã°æè¿iPhoneã¢ããªéçºã«ã¤ãã¦ä½ããã£ã¦ãªããªã¼ãã¨æãã¤ã¤ãã»ã¨ãã©å¿ãã¦ãã¾ã£ãããæ¹ãã¦åºæ¬ããå¦ã³ãããªã¼ãã¨ãæãã¤ã¤ãããã ãæè¿ã¯è¯ãåç»ã¨ãããããããªãããªãã¨ãæã£ãã®ã§ãYouTubeã§Objective-Cãåå¼·ã§ããå ¥éåç»ãæ¢ãã¦ã¿ã¾ããã iPhoneã¢ããªéçºåç»ã®ç®æ¬¡ 1. iOSã¢ããªéçºè¬åº§ 2. Objective-Cå ¥é 3. iPhoneã¢ããªéçºObjective-C+Xcodeå ¥éè¬åº§ 4. ãªãã¨ãªãåãã£ãæ°ã«ãªãiPhoneã¢ããªå¶ä½ 5. 誰ã§ãã§ããiPhoneã¢ããªã®ä½ãæ¹ 6. å°å¦çããå§ããiPhoneã¢ããªéçº 7. iPhoneã«ã¦ã³ã¿ã¼ã¢ããªã®ä½ãæ¹ 8. ãããã¤ã³ã¹ãã¼ã«ãiPhoneã¢ããªéçºå ¥éã 9. iphoneã¢ããªéçº 1. iOSã¢ããªéçºè¬åº§ iOSã¢ããªéçºè¬åº§ 第ï¼å â You
ãã¤ãã¼ vs ã¯ã©ã¹ã¡ã½ãã iOS çã®7çªåè² ãã§çºè¡¨ããã¹ã©ã¤ãã éçºå¹çããããããã®Xcodeã®tipsãç´¹ä»ãã¾ããã è£è¶³ã¨ã³ããªã¯ãã¡ãï¼ http://himaratsu.hatenablog.com/entry/xcode Ustã¯ãã¡ãï¼ http://www.ustream.tv/recorded/44215492Read less
2014-01-07 ãå¤§å¹ è¿½å ããããåèã«ãªãiOSéçºé¢é£ã®è¯è¨äºã¾ã¨ããã©ã¤ãã©ãªãããã°ã©ãã³ã°ãUI/UXãããã¢ã¼ã·ã§ã³ã®ã¡ã¢ iOSéçºã®è¨äºã®ã¾ã¨ã ããã«ã¡ã¯nasustã§ããããããåèã«ãªãiOSéçºé¢é£ã®è¯è¨äºã¾ã¨ããã©ã¤ãã©ãªãããã°ã©ãã³ã°ãUI/UXãããã¢ã¼ã·ã§ã³ã®ã¡ã¢ - showrtpath - iPhone,iPadã¦ã§ããã©ã¦ã¶ã¢ããªéçºããã°ããå¤§å¹ ã«æ´æ°ãã¾ããã®ã§ãæ´æ°å 容ããã¡ãã§ç´¹ä»ãã¾ãããã®ã¾ã¨ãã¯ãiOSéçºè ã®æçãªæ å ±ãæä¾ããç®çã§ãããã®ã¾ã¨ããèªãã ãã§é«å質ãªã¢ããªãéçºã§ããããã«ãã¾ãã 以ä¸ã®ã¾ã¨ããããããåèã«ãªãiOSéçºé¢é£ã®è¯è¨äºã¾ã¨ããã©ã¤ãã©ãªãããã°ã©ãã³ã°ãUI/UXãããã¢ã¼ã·ã§ã³ã®ã¡ã¢ - showrtpath - iPhone,iPadã¦ã§ããã©ã¦ã¶ã¢ããªéçºããã°ãã«è¿½å ãã¾ããã å ¥éã»
追è¨ï¼ â»ãã®è¨äºã¯ããæ¢ã«ã¢ããªéçºè ã§ãã人ããããçç£æ§ãä¸ããããã¨ãé¡ã£ã¦æ¸ããè¨äºã«ãªãã¾ãã ããç解ãã¦ãªãæ¹ããã®è¨äºãåèã«ãã¦ãããã使ã£ããç°¡åã«ãªããããããã¨ãã解éãããããã®è¨äºã§ã¯ããã¾ããã å©ç¨ããã°ä¾¿å©ã«ãªãããããããªããã¨ãããã®ã§ãããã¨ãç解ãã¦ããã¦ãã ããã ã¢ããªã®éçºã¯æ©ãããã®ä¸ã¯ãªãªãã£é«ãå®æãããã®ãè¯ãã¨æãã¾ãã èªåã§ã便å©ã¯ã©ã¹ãªã©ãä½æãã¦ãã人ãå¤ãããã¨ã¯æãã¾ããã iOSã¯ãªã¼ãã³ã½ã¼ã¹ãªã©ã¤ãã©ãªãå å®ãã¦ããã®ã§ãã§ããã ãå©ç¨ãã㦠æ©ã確å®ã«éçºãçµãããã¡ããã¾ãããã ã©ã¤ã»ã³ã¹ã¯ãããããåç §ãã¦ç¢ºèªãã¦ãã ããã ARCã¸ã®å¯¾å¿æç¡ããã確èªãã¦ã¿ã¾ãããã â»è¦åºãã¿ã¤ãã«ããªã³ã¯ã«ãªã£ã¦ãã¾ãã SDWebImage ã¤ã³ã¿ã¼ãããçµç±ã§ç»åãåå¾ããUIImageViewã¸è¡¨ç¤ºããã¨ãã
追è¨(03/2014) COCOAPODS SEARCH çæ³çãªãµã¼ãã¹ãéå ¬å¼ã«ã§ãã¦ãããæé«ãªã®ã§æ¯é使ãã¾ãããã 以ä¸ã¯å稿 ã¿ã¤ãã«ã®ä»¶ã¯å¿ãã¦ãã ããã æ¦è¦ CocoaPodsã¡ã¤ã³Specãªãã¸ããªã®å ¨ç»é²ã¢ã¸ã¥ã¼ã«ã対象ã«GitHubã§ã®watcher/staræ°ãªã©ãåèã«ããä¸è¦§ãä½æãã¾ãã+Objective-C Toolbox ã欲ãã話ã ãªã«ãã¨ããã¨ãã¼ã«ã«ã®Cocoapodsã®podspecãã£ã¬ã¯ããªã®å:sourceããGitHubä¸ã®ãªãã¸ããªãç¹å®ãã¦APIã§åå¾ããã ãã§ãããªã®ã§GitHubã«ãªããªãã¸ããªã¯æç®ããã¦ãªãã ä½æ¥ã«ä½¿ã£ãã¹ã¯ãªããããã®ã¸ãã«ããã¾ã https://github.com/laiso/objc-toolbox/tree/master/script ãªãã§ãããªãã®ãå¿ è¦ã ã£ãã®ãã¨ããã¨ãåããmetac
ã¯ããã« ããã«ã¡ã¯ãGoçã®ãã³ã»ãã¼ãã«ã§ããæè¿ã¡ããã¡ããiOSéçºã«ã¤ãã¦èª¿ã¹ç©ãããã¡ããã¡ããããã£ã¦ãã®ã§ãå¿ããªããã¡ã«ã¡ã¢ãã¦ããã¾ããã¡ãªã¿ã«åã¯æè¿ã«ãªã£ã¦iOSéçºãObjective-Cã触ãå§ãããããªç´ 人ã§ãã®ã§ãééã£ãç解ããã¦ããããããã¾ãããã³ã¡ã³ããªã©ããã ããã°å¹¸ãã Getting Started ã¨ããããå ¬å¼ããã¥ã¡ã³ãèªãã©ãã°ããã ãã¨æã£ãã®ã§ãAppleã®å ¬å¼ããã¥ã¡ã³ããèªã¿ãªããæãåããã¾ããã Start Developing iOS Apps Today PDFç ããã§ãTODO listã¢ããªãStoryboardã¨ããé§ä½¿ãã¦ã³ã¼ããã»ã¨ãã©æ¸ããã«ã§ãããããããï¼ï¼ãã¿ãããªãã¥ã¼ããªã¢ã«ãã£ããã§ãããçµå±ä½ãããã£ãã®ããããã¾ãã§ããããããªããªã£ãã®ã§ãã¨ããããObjective-Cã®ã³ã¼ããé©å½ã«æ¸
ã¬ã³ã¿ã«ãµã¼ããªãããããã®ã¬ã³ã¿ã«ãµã¼ããï¼ æé¡æç®ã§ããã131åã缶ã¸ã¥ã¼ã¹1æ¬åã®ãå¤æ®µã§ä½¿ããæ ¼å®ãã©ã³ããããã¸ãã¹ã«ã使ããå¤æ©è½ï¼å¤§å®¹éãã©ã³ã¾ã§ã ç¨éã¨äºç®ã«åããã¦ãã©ã³ãé¸ã¹ã¾ãã ããã«ãã«ããã¡ã¤ã³å¯¾å¿ã§ã¡ã¼ã«ã¢ãã¬ã¹ãç¡å¶éãç¡æã¦ã¤ã«ã¹ã¹ãã£ã³ãç¡æé»è©±ãµãã¼ããããã®ã§å®å¿ã㦠ãå©ç¨ããã ããå ±ç¨ã¬ã³ã¿ã«ãµã¼ããµã¼ãã¹ã§ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}