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

Objective-C 里的 interface 是非正式协议而不是接口吗?

  •  
  •   UtopiaCHN · Jan 15, 2016 · 3422 views
    This topic created in 3922 days ago, the information mentioned may be changed or developed.
    3 replies  •  2016-01-21 17:25:08 +08:00
    Alchemistxxd
        1
    Alchemistxxd  
       Jan 15, 2016
    .h 的 @interface 是接口, .m 的 @interface 是类扩展, category 里也有 @interface ,类扩展又叫匿名 category ,非正式协议等价于 category ,其实都一样,就是你声明方法和变量的地方。
    xi_lin
        2
    xi_lin  
       Jan 17, 2016
    protocol 更像接口
    pinxue
        3
    pinxue  
       Jan 21, 2016
    对照某些其它编程语言
    @interface == class
    @protocol == interface
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1384 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 16:43 · PVG 00:43 · LAX 09:43 · JFK 12:43
    ♥ Do have faith in what you're doing.