I noticed on this chapter on p231, location 5510, kindle, that ImageStore.h should import UIKit.h, but not Foundation.h
Yet, when I create the subclass files, Xcode 4.2 already inserts the code to import Foundation.h, but not UIKit.h.
So, which is it? Does this class not need Foundation.h as per the book?
When searching for the answer, I found that every project has a prefix.pch file, which includes Foundation.h and UIKit.h for all files already. So I guess my question “assumes” that we don’t have this file.
From the documentation, I gathered that UIKit.h deals with User Interface stuff, while Foundation.h handles objective c, deallocs, etc.
So I guess we need both, right?