0
#import <someclass.h>
和`#import「someclass.h」有什麼區別?iOS:如何導入一個類,使其成爲父類?
而這裏的是什麼,我認爲,
請糾正我,如果我錯了。
#import "classname.h" // This means importing a class within the same project
#import <classname.h> // This means importing a class from the local directory
@interface DerviedClass : ParentClass // This is inheritance
通過使用所有這些,我們可以使用另一個類的方法和屬性。
我的問題是什麼時候應該使用這些東西,爲什麼?
看來你已經回答了你的問題。 – 2014-12-04 09:19:05
您是否期望發佈有關面向對象編程的課程? – gnasher729 2014-12-04 09:33:48
'「classname.h」'是用戶標題,''是系統標題。 –
2014-12-04 09:37:24