首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

Objective-C 中,@class & #import 的差别

2013-10-16 
Objective-C 中,@class & #import 的区别Key points:#Import links the header file it contains. Every

Objective-C 中,@class & #import 的区别
Key points:
    "#Import" links the header file it contains. Everything in the header, including property definitions, method declarations and any imports in the header are made available. Import provides the actual definitions to the linker.

     @class by contrast just tells the linker not to complain it has no definition for a class. It is a "contract" that you will provide a definition for the class at another point.

原文出处:http://www.51testing.com/html/27/225927-231535.html

热点排行