I am new to objective-c and started iphone application development. I have noticed the import statement like import <UIKit/UIKit.h> etc… I wanted to know what does it mean. Why not simply import <UIKit> or import <UIKit.h>? In fact if I do that, it gives a no-such-file-error”!
So does it mean that we should name our files like that? So that when we import the header, it looks like MyApplication/MyApplication.h? Or is it just for the libraries? Even if it is, then why is that so?
This syntax looks weird to me, so I am just asking out of curiosity. But may be I am supposed to use them somewhere that I am not doing. I guess knowing is the best solution 🙂
UIKit/UIKit.his a path.UIKitis some package andUIKit.his the header that you are actually importing.This is common for large frameworks and libraries in Objective-C, C, and C++.