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
  • 38,301
  • 54
  • 185
  • 322

1 Answers1

1

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

nicael
  • 17,612
  • 12
  • 55
  • 87