Vote count:
0
I have this on MyClass:
typedef void (^myBlockType)();
then
- (id)initWithBlock:(myBlockType)block;
when I use that class I do
MyClass *obj = [[MyClass alloc] initWIthBlock:^{
// do stuff
}];
I have an error incompetible block pointer types sending int(^)(void) to parameter of type myBlockType aka void(^)()
What is wrong?
asked 36 secs ago
Aucun commentaire:
Enregistrer un commentaire