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
marvinII
V2EX  ›  iDev

如何在编译时拿到Xcode或者Clang的版本?

  •  
  •   marvinII · Sep 4, 2013 · 5374 views
    This topic created in 4652 days ago, the information mentioned may be changed or developed.
    在做一个东东, 与不同版本的Xcode产生的函数调用参数布局有关, 想条件编译一下:

    #if IS_XCODE_4
    ...
    #elif IS_XCODE_5
    ...
    #endif

    如何做?
    2 replies    1970-01-01 08:00:00 +08:00
    detecti1
        1
    detecti1  
       Sep 6, 2013
    我是这么整的 #ifdef __IPHONE_7_0

    xcode5下编译的base sdk是7.0 -。- 到xcode4里编译就没这个定义了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5084 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 09:44 · PVG 17:44 · LAX 02:44 · JFK 05:44
    ♥ Do have faith in what you're doing.