编绎显示Unknown type name “CGFloat” 错误解决方法

将Compile Sources As 改为 Objective-C++

  




二、如果是extern const引起的。直接加头文件

#import <UIKit/UIKit.h>

原文地址:https://www.cnblogs.com/conanwin/p/4244790.html