ios - Cannot find interface declaration for 'UIView' -
I am trying to add objective counts to my encoded project. But I'm getting the number of these errors:
"Interface declaration can not be found for 'UIView'" "
" One type "
I have linked the quartzakor framework. And the .m file has been added to compile the sources. What am I missing? I am a newbie for iOS Please help.
This is a bug in the library header file () UIView But does not import & lt; UIKit / UIKit.h & gt; , so copying your source files into your project can give you this error. / P>
( UPDATE :) :)
One way to fix this is to #import & lt; UIKit / UIKit.h & gt;
On the top of UIView + Toast.h another way is to #import & lt; UIKit / UIKit.h & gt; your target's . Include the PP file in the "Helpful" group, if your project has a .pch file Which looks like Xcode does not contain any .pch file in the project template 6, so you will not be able to use it easily.
Comments
Post a Comment