2013-06-07 02:47:43 -04:00
|
|
|
//
|
|
|
|
// NBNotifier.h
|
|
|
|
// NewsBlur
|
|
|
|
//
|
|
|
|
// Created by Samuel Clay on 6/6/13.
|
|
|
|
// Copyright (c) 2013 NewsBlur. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
|
|
@interface NBNotifier : UIView
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
NBOfflineStyle = 1,
|
|
|
|
NBLoadingStyle = 2,
|
|
|
|
NBSyncingStyle = 3
|
|
|
|
} NBNotifierStyle;
|
|
|
|
|
|
|
|
@property (assign, nonatomic) NSString *_text;
|
2013-06-10 00:29:03 -07:00
|
|
|
@property (assign, nonatomic) NBNotifierStyle _style;
|
2013-06-07 02:47:43 -04:00
|
|
|
@property (assign, nonatomic) UIView *_view;
|
|
|
|
|
2013-06-10 00:29:03 -07:00
|
|
|
- (id)drawInView:(UIView *)view withText:(NSString *)text style:(NBNotifierStyle)style;
|
|
|
|
- (void)hideWithAnimation:(BOOL)animate;
|
|
|
|
|
2013-06-07 02:47:43 -04:00
|
|
|
@end
|