I’m 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:
Redefinition of typedef ‘RevealBlock’ is a C11 feature
Is this something to be worried about? I’m looking at the GHSidebarNav project, which seems to use it just fine.
You must have declared
RevealBlocksomewhere else, as i don’t see any import other than UIKit/UIKit.h, check you project.pchfile for conflicting headers (or could it be that you removed some headers to make the snippet shorter ?).