码迷,mamicode.com
首页 > 移动开发 > 详细

iOS中遇到Unkown type name NSString Unkown type name CGFloat

时间:2014-10-11 12:38:05      阅读:520      评论:0      收藏:0      [点我收藏+]

标签:io   os   文件   数据   sp   on   cti   ad   ef   

这里定义的是C的类型数据。直接在文件中加入#import <UIKit/UIKit.h>解决

 

I had the same issue on my project when I was trying to mix C code (.h and .c) with Objective-C code. Found the reason of the issue:

Check your .pch file to make sure every Objective-C framework #import (such as #import <UIKit/UIKit.h>) is enclosed in:

#ifdef __OBJC__

#endif

iOS中遇到Unkown type name NSString Unkown type name CGFloat

标签:io   os   文件   数据   sp   on   cti   ad   ef   

原文地址:http://www.cnblogs.com/i0ject/p/4018533.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!