[英]will be assumed to return id
I import oourafft.h and oourafft.m class, but get strange error while ooura initialize. 我导入了oourafft.h和oourafft.m类,但是在ooura初始化时出现奇怪的错误。
OouraFFT * myFFT = [OouraFFT initForSignalsOfLength:1024 numberOfWindows:10];
OouraFFT may not respond to +initForSignalsOfLength: numberOfWindows OouraFFT可能不响应+ initForSignalsOfLength:numberOfWindows
Messages without matching method signature will be assumed to return 'id' and accept argument - Warning 没有匹配方法签名的消息将被假定为返回“ id”并接受参数-警告
I think that it some kind of error import .h file 我认为导入.h文件存在某种错误
You are trying to call class method which does not exist in OouraFFT - this method is instance method, so you need to allocate object at first. 您正在尝试调用OouraFFT中不存在的类方法-该方法是实例方法,因此您首先需要分配对象。
You should do the following: 您应该执行以下操作:
OouraFFT * myFFT = [[OouraFFT alloc] initForSignalsOfLength:1024 andNumWindows:10];
And don't forget that you own object after this, therefore you should release or autorelease in an appropriate place. 并且不要忘记在此之后拥有对象,因此应该在适当的位置释放或自动释放。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.