Ios 模棱两可;未解析标识符的使用“;错误?
我得到了这个未解决标识符错误的使用,这对我来说非常模糊,它出现在下面的一行: 但是,“LUTToNSDataConverter”在以下文件中初始化:Ios 模棱两可;未解析标识符的使用“;错误?,ios,swift,variables,xcode6,uiimagepickercontroller,Ios,Swift,Variables,Xcode6,Uiimagepickercontroller,我得到了这个未解决标识符错误的使用,这对我来说非常模糊,它出现在下面的一行: 但是,“LUTToNSDataConverter”在以下文件中初始化: // // LUTToNSDataConverter.h // imglyKit // // Created by Carsten Przyluczky on 29/01/15. // Copyright (c) 2015 9elements GmbH. All rights reserved. // #import <Found
//
// LUTToNSDataConverter.h
// imglyKit
//
// Created by Carsten Przyluczky on 29/01/15.
// Copyright (c) 2015 9elements GmbH. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface LUTToNSDataConverter : NSObject
+ (nullable NSData *)colorCubeDataFromLUTNamed:(nonnull NSString *)name interpolatedWithIdentityLUTNamed:(nonnull NSString *)identityName withIntensity:(float)intensity cacheIdentityLUT:(BOOL)shouldCache;
/*
This method reads an LUT image and converts it to a cube color space representation.
The resulting data can be used to feed an CIColorCube filter, so that the transformation
realised by the LUT is applied with a core image standard filter
*/
+ (nullable NSData *)colorCubeDataFromLUT:(nonnull NSString *)name;
@end
//
//LUTToNSDataConverter.h
//伊姆格利基特
//
//由Carsten Przyluczky于2015年1月29日创建。
//版权所有(c)2015 9elements GmbH。保留所有权利。
//
#进口
@接口LUTToNSDataConverter:NSObject
+(可为Null的NSData*)colorCubeDataFromLUTNamed:(非Null NSString*)名称插值为IdentityLutNamed:(非Null NSString*)identityName with intensity:(float)intensity cacheIdentityLUT:(BOOL)shouldCache;
/*
此方法读取LUT图像并将其转换为立方体颜色空间表示。
生成的数据可用于向CIColorCube过滤器提供信息,以便进行转换
通过LUT实现,并应用核心图像标准滤波器
*/
+(可空NSData*)colorCubeDataFromLUT:(非空NSString*)名称;
@结束
我可以补充一点,当我将整个文件夹从Pods项目目标拖到我的常规项目目标时,这个变量变得“未解析”,所以Xcode可以识别它。如何解决此问题?您需要添加桥接头,因为您使用的是Objective-C类:
#import "YourHFile.h"
()编译器不知道它是什么?所以请像这样使用
LUTToNSDataConverter(). colorCubeDataFromLUTNamed()// Pass your arguments here
希望对你有帮助