V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
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
caizixian
V2EX  ›  iDev

Dash for iOS 的某行代码

  •  1
     
  •   caizixian ·
    caizixian · 2016-11-15 11:28:59 +08:00 · 4534 次点击
    这是一个创建于 2934 天前的主题,其中的信息可能已经有所发展或是发生改变。
    9 条回复    2016-11-24 09:32:14 +08:00
    vulgur
        1
    vulgur  
       2016-11-15 11:45:28 +08:00
    滚了好久才滚到行尾
    allan888
        2
    allan888  
       2016-11-15 11:59:01 +08:00
    想知道这个和搞个 set 然后 check 一下是不是在 set 里面相比,他这么写有什么特殊的考虑吗。。。
    black
        3
    black  
       2016-11-15 12:40:06 +08:00
    @allan888 有个用 set 重构的 PR 了
    Chrisplus
        4
    Chrisplus  
       2016-11-15 12:46:06 +08:00
    不能设置 max line length 么,换个行也好
    iAugus
        5
    iAugus  
       2016-11-15 12:46:39 +08:00
    滚的好累。。。
    HuangLibo
        6
    HuangLibo  
       2016-11-15 13:14:56 +08:00
    真的开源啦,虽然之前花了三十块钱,但是我已经很满意啦!
    kitalphaj
        7
    kitalphaj  
       2016-11-15 13:27:20 +08:00
    Dash for iOS 的代码质量明显不高,毕竟当初写的时候肯定没打算开源,这种地方能水就水了。。。
    andyL
        8
    andyL  
       2016-11-22 16:53:30 +08:00
    if([self.platform isEqualToString:@"python"] || [self.platform isEqualToString:@"zepto"] || [self.platform isEqualToString:@"cvp"] || [self.platform isEqualToString:@"cvc"] || [self.platform isEqualToString:@"mongodb"] || [self.platform isEqualToString:@"cvcpp"] || [self.platform isEqualToString:@"vagrant"] || [self.platform isEqualToString:@"cf"] || [self.platform isEqualToString:@"ansible"] || [self.platform isEqualToString:@"ocaml"] || [self.platform isEqualToString:@"twig"] || [self.platform isEqualToString:@"smarty"] || [self.platform isEqualToString:@"chef"] || [self.platform isEqualToString:@"php"] || [self.platform isEqualToString:@"express"] || [self.platform isEqualToString:@"bash"] || [self.platform isEqualToString:@"swift"] || [self.platform isEqualToString:@"extjs"] || [self.platform isEqualToString:@"titanium"] || [self.platform isEqualToString:@"sencha"] || [self.platform isEqualToString:@"markdown"] || [self.platform isEqualToString:@"latex"] || [self.platform isEqualToString:@"bourbon"] || [self.platform isEqualToString:@"cmake"] || [self.platform isEqualToString:@"awesome"] || [self.platform isEqualToString:@"jade"] || [self.platform isEqualToString:@"SproutCore"] || [self.platform isEqualToString:@"neat"] || [self.platform isEqualToString:@"moment"] || [self.platform isEqualToString:@"elasticsearch"] || [self.platform isEqualToString:@"xojo"] || [self.platform isEqualToString:@"lodash"] || [self.platform isEqualToString:@"statamic"] || [self.platform isEqualToString:@"drupal"] || [self.platform isEqualToString:@"phonegap"] || [self.platform isEqualToString:@"cordova"] || [self.platform isEqualToString:@"laravel"] || [self.platform isEqualToString:@"compass"] || [self.platform isEqualToString:@"haml"] || [self.platform isEqualToString:@"sass"] || [self.platform isEqualToString:@"bootstrap"] || [self.platform isEqualToString:@"ember"] || [self.platform isEqualToString:@"jasmine"] || [self.platform isEqualToString:@"perl"] || [self.platform isEqualToString:@"jquerym"] || [self.platform isEqualToString:@"jQuery"] || [self.platform isEqualToString:@"css"] || [self.platform isEqualToString:@"dartlang"] || [self.platform isEqualToString:@"phpunit"] || [self.platform isEqualToString:@"polymerdart"] || [self.platform isEqualToString:@"angulardart"] || [self.platform isEqualToString:@"xul"] || [self.platform isEqualToString:@"xslt"] || [self.platform isEqualToString:@"javascript"] || [self.platform isEqualToString:@"arduino"] || ([self.platform isEqualToString:@"matlab"] && [self.type isEqualToString:@"Class"]) || [self.platform isEqualToString:@"angularjs"] || [self.platform isEqualToString:@"emmet"] || [self.platform isEqualToString:@"chai"] || [self.platform isEqualToString:@"mongoose"] || [self.platform isEqualToString:@"react"] || [self.platform isEqualToString:@"grunt"] || [self.platform isEqualToString:@"sooffline"] || [self.platform isEqualToString:@"soonline"] || [self.platform isEqualToString:@"rust"] || [self.platform isEqualToString:@"flask"] || [self.platform isEqualToString:@"numpy"] || [self.platform isEqualToString:@"pandas"] || ([self.platform isEqualToString:@"wordpress"] && [self.originalName contains:@"::"] && [self.type isEqualToString:@"Method"]) || [self.platform isCaseInsensitiveEqual:@"apache"] || [self.platform isEqualToString:@"sqlalchemy"] || [self.platform isEqualToString:@"tornado"] || [self.platform isEqualToString:@"matplotlib"] || [self.platform isEqualToString:@"salt"] || [self.platform isEqualToString:@"jinja"] || [self.platform isEqualToString:@"require"] || [self.platform isEqualToString:@"scipy"] || [self.platform isEqualToString:@"go"] || [self.platform isEqualToString:@"godoc"] || [self.platform isEqualToString:@"prototype"] || [self.platform isEqualToString:@"puppet"] || [self.platform isEqualToString:@"stylus"] || [self.platform isEqualToString:@"sinon"] || [self.platform isEqualToString:@"gl2"] || [self.platform isEqualToString:@"gl3"] || [self.platform isEqualToString:@"gl4"] || [self.platform isEqualToString:@"jqueryui"] || [self.platform isEqualToString:@"underscore"] || [self.platform isEqualToString:@"backbone"] || [self.platform isEqualToString:@"marionette"] || [self.platform isEqualToString:@"coffee"] || [self.platform isEqualToString:@"yii"] || [self.platform isEqualToString:@"mono"] || [self.platform isEqualToString:@"xamarin"] || [self.platform isEqualToString:@"yui"] || [self.platform isEqualToString:@"tcl"] || [self.platform isEqualToString:@"erlang"] || [self.platform isEqualToString:@"vsphere"] || [self.platform isEqualToString:@"twisted"] || [self.platform isEqualToString:@"phpp"] || [self.platform isEqualToString:@"joomla"] || [self.platform isEqualToString:@"symfony"]|| [self.platform isEqualToString:@"cakephp"] || [self.platform isEqualToString:@"scala"] || [self.platform isEqualToString:@"scaladoc"] || [self.platform isEqualToString:@"playscala"] || [self.platform isEqualToString:@"akka"] || [self.platform isEqualToString:@"sqlite"] || [self.platform isEqualToString:@"boost"] || [self.platform isEqualToString:@"unity3d"] || [self.platform isEqualToString:@"django"] || [self.platform isEqualToString:@"cpp"] || [self.platform isEqualToString:@"c"] || [self.platform isEqualToString:@"qt"] || [self.platform isEqualToString:@"rails"] || [self.platform isEqualToString:@"codeigniter"] || [self.platform isEqualToString:@"yard"] || [self.platform isEqualToString:@"ruby"] || [self.platform isEqualToString:@"awsjs"] || [self.platform isEqualToString:@"rubyGems"] || [parseFamily isEqualToString:@"cheatsheet"] || [parseFamily isEqualToString:@"originalName"] || [self.platform isEqualToString:@"foundation"] || [self.platform isEqualToString:@"lua"] || [self.platform isEqualToString:@"dojo"] || [self.platform isEqualToString:@"elixir"] || [self.platform isEqualToString:@"knockout"] || [self.platform isEqualToString:@"meteor"] || ([self.platform isEqualToString:@"actionscript"] && ![self.type isEqualToString:@"Class"]) || ([self.platform isEqualToString:@"grails"] && [self.type isEqualToString:@"Guide"])){

    }
    coldmn3
        9
    coldmn3  
       2016-11-24 09:32:14 +08:00
    已经有人 pr 了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1061 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 21:35 · PVG 05:35 · LAX 13:35 · JFK 16:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.