IPhone library project + UIViews
I'm trying to refactor some of my iphone code into a library project that can be linked to by several d开发者_如何学运维ifferent applications. I made a new iphone library project and copied over some of my classes there, but the project can't build because it doesn't know about stuff like UIView or CGRect. I added in the UIKit, CoreGraphics, and QuartzCore frameworks, but still no go. What am I missing?
Check that all source code that references UIView or CGRect has the line
#import <UIKit/UIKit.h>
in the beginning.
精彩评论