If you import UIKit.h does that also automatically import Foundation.h?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
UIKit.hdoesn’t explicitly include it, but I wouldn’t be surprised if one of the other UIKit headers does.However, all of your files will have it anyway, because your default pch (precompiled header, or the header that’s automatically added to every file in your project) comes with this:
This means that every file in your iPhone app will automatically have Foundation and UIKit imported.