G’Day Programmers,
Lets get straight onto some of the issues I noticed. I was cleaning up my code and learning how much boilerplate code is being generated by Xcode. I found something unusual, In my prefix file(Assuming all of you must have this too…) I have some code like this,

[Image 1.1]
In Image 1.1 we can clearly see that, If definition is Objective C than #import <UIKit/UIKit.h>. This will save us rewriting #import statement in all our other classes because by definition this import will be available to all Objective C classes in our project.(I might be wrong, Please hit me with the brick if I am wrong! 🙂 ).
However, Whenever you add a classes or when you choose ViewBased application(or whatever…) there will be few classes already created for you with awesome amount of boilerplate code including #<UIKit/UIKit.h> like,

[Image 1.2]
As we can see in Image 1.2 Xcode again added import statement, So my confusion is,
I can’t understand
- Why Xcode is adding #import multiple times?
- Do we really need to #import twice?
- Should I worried about this or shut up and start making awesome apps?
Thanks for you input
It’s likely included twice so that if you decide to disable the prefix header it won’t break your code.