Ios 定义完成块参数列表错误
所以答案显示了如何定义这样的完成块Ios 定义完成块参数列表错误,ios,objective-c,Ios,Objective C,所以答案显示了如何定义这样的完成块 @interface ViewController () typedef void(^myCompletion)(BOOl); @end @implementation ViewController 但是,当我尝试在ViewController中执行此操作时,会出现此错误 a parameter list without type is only allowed in a function definition 你能解释一下我做错了什么吗?布尔不存在布尔
@interface ViewController ()
typedef void(^myCompletion)(BOOl);
@end
@implementation ViewController
但是,当我尝试在ViewController中执行此操作时,会出现此错误
a parameter list without type is only allowed in a function definition
你能解释一下我做错了什么吗?布尔不存在<代码>布尔和
bool
do.您会得到错误,因为
BOOl
不是一个类型。BOOl是一个打字错误吗?@larme-ugh这就是问题所在