iOS 开发实用技术导航
NSHipster 中文版
› http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
› http://www.cocos2d-iphone.org/
CocoaPods
› http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
› http://code.google.com/mobile/analytics/
WWDC
› https://developer.apple.com/wwdc/
Design Guides and Resources
› https://developer.apple.com/design/
Transcripts of WWDC sessions
› http://asciiwwdc.com
Cocoa with Love
› http://cocoawithlove.com/
Cocoa Dev Central
› http://cocoadevcentral.com/
NSHipster
› http://nshipster.com/
Style Guides
› Google Objective-C Style Guide
› NYTimes Objective-C Style Guide
Useful Tools and Services
› Charles Web Debugging Proxy
› Smore
dazuiba
V2EX  ›  iDev

用macros简化Objective-C开发: ConciseKit

  •  
  •   dazuiba ·
    dazuiba · Mar 30, 2012 · 6109 views
    This topic created in 5334 days ago, the information mentioned may be changed or developed.
    ConciseKit:

    https://github.com/petejkim/ConciseKit


    简介:

    NSArray
    > $arr(foo, bar) => [NSArray arrayWithObjects:foo, bar, nil]
    [array $eachWithIndex:^(id obj, NSUInteger i) {
    NSLog(@"%d %@", i, obj);
    }]

    NSString
    > $str(@"foo: %@", bar) => [NSString stringWithFormat:@"foo: %@", bar]

    NSDictionary

    > $dict(v1, k1, v2, k2) => [NSDictionary dictionaryWithObjectsAndKeys:v1, k1, v2, k2, nil]
    7 replies  •  1970-01-01 08:00:00 +08:00
    linlinqi
    linlinqi
    Mar 30, 2012
    1
    用了一阵子,后来看看Xcode 4.4,就放弃了
    lex
    lex
    Mar 31, 2012
    2
    这种$开头的总让我先想到jQuery。
    p.s. 貌似现在singleton用gcd实现比较好?
    fly2never
    fly2never
    Mar 31, 2012
    3
    等4.4
    fly2never
    fly2never
    Mar 31, 2012
    4
    不知为何,想起了这货
    http://eerolanguage.org/
    1212e
    1212e
    Mar 31, 2012
    5
    php程序员表示又要开始写$了...
    qlqsh
    qlqsh
    Mar 31, 2012
    7
    无非就是简写,觉得意义不是很大。需要记的东西反而增加了,不好,还不如直接snippet。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5135 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 06:17 · PVG 14:17 · LAX 22:17 · JFK 01:17
    ♥ Do have faith in what you're doing.