Typedef overriding is a C11 function

I am trying to create a header file as such:

#import <UIKit/UIKit.h>

typedef void (^RevealBlock)();

@interface BFTasksViewController : UITableViewController <UITableViewDataSource, UITableViewDelegate> {
@private
    RevealBlock _revealBlock;
}

- (id)initWithTitle:(NSString *)title withRevealBlock:(RevealBlock)revealBlock;

@end

But I get this warning:

Overriding typedef 'RevealBlock' is a C11 function

Is this something bothering you? I look at the GHSidebarNav project , which seems to use it just fine.

+5
source share
2 answers

You should have declared RevealBlocksomewhere else, since I do not see any import except for UIKit / UIKit.h, check the project file .pchfor conflicting headers (or maybe you deleted some headers to make the snippet shorter?).

+5
source

Is this something bothering you?

C ObjC, C11, (GCC 4.2-Apple/LLVM , -, , ). , ++ .

, , , , . .

+3

All Articles