開発のヒホ

iOSとかAndroidとかのアプリを開発するのに四苦八苦するブログ

iOS8でライブラリのFlatUIを使うとエラーが出る

prefix attribute must be followed by an interface or protocol

とのこと。
この辺りがひっかかっていました。

#import <UIKit/UIKit.h>

@interface UINavigationBar (FlatUI)

- (void) configureFlatNavigationBarWithColor:(UIColor *)color ; UI_APPEARANCE_SELECTOR

@end

UI_APPEARANCE_SELECTORの位置がおかしいのが原因です。
セミコロン(;)の前にUI_APPEARANCE_SELECTORを移動すれば解決します。

#import <UIKit/UIKit.h>

@interface UINavigationBar (FlatUI)

- (void) configureFlatNavigationBarWithColor:(UIColor *)color UI_APPEARANCE_SELECTOR;

@end