Home
Sign Up
Sign In
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
Advertisement
V2EX
›
iDev
Objective-C 里的 interface 是非正式协议而不是接口吗?
UtopiaCHN
·
Jan 15, 2016
· 3490 views
This topic created in 3944 days ago, the information mentioned may be changed or developed.
interface
非正式
接口
协议
3 replies
•
2016-01-21 17:25:08 +08:00
Alchemistxxd
Jan 15, 2016
1
.h 的 @
interface
是接口, .m 的 @
interface
是类扩展, category 里也有 @
interface
,类扩展又叫匿名 category ,非正式协议等价于 category ,其实都一样,就是你声明方法和变量的地方。
xi_lin
Jan 17, 2016
2
protocol 更像接口
pinxue
Jan 21, 2016
3
对照某些其它编程语言
@
interface
== class
@
protocol
== interface
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
1234 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 24ms ·
UTC 21:48
·
PVG 05:48
·
LAX 13:48
·
JFK 16:48
♥ Do have faith in what you're doing.
❯