1

This SO answer shows how to define a completion block like this

@interface ViewController ()
typedef void(^myCompletion)(BOOl);
@end

@implementation ViewController

However when I try to do that in my ViewController, I get this error

a parameter list without type is only allowed in a function definition

Can you explain what I'm doing wrong

Community
  • 1
  • 1
Leahcim
  • 40,649
  • 59
  • 195
  • 334

1 Answers1

1

BOOl doesn't exist. bool and BOOL do.
You get error, because BOOl is not a type.

nicael
  • 18,550
  • 13
  • 57
  • 90