Skip to content

Commit

Permalink
Added ‘setDelegateForPushNote’.
Browse files Browse the repository at this point in the history
  • Loading branch information
avielg committed Aug 16, 2014
1 parent 4d38c7b commit 4fa916e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion AGPushNote_Example/AGPushNoteView.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
@optional
- (void)pushNoteDidAppear; // Called after the view has been fully transitioned onto the screen. (equel to completion block).
- (void)pushNoteWillDisappear; // Called before the view is hidden, after the message action block.

@end

@interface AGPushNoteView : UIToolbar
+ (void)showWithNotificationMessage:(NSString *)message;
+ (void)showWithNotificationMessage:(NSString *)message completion:(void (^)(void))completion;
Expand All @@ -21,6 +21,7 @@
+ (void)awake;

+ (void)setMessageAction:(void (^)(NSString *message))action;
+ (void)setDelegateForPushNote:(id<AGPushNoteViewDelegate>)delegate;

@property (nonatomic, weak) id<AGPushNoteViewDelegate> pushNoteDelegate;
@end
4 changes: 4 additions & 0 deletions AGPushNote_Example/AGPushNoteView.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ + (instancetype)sharedPushView
return nil;
}

+ (void)setDelegateForPushNote:(id<AGPushNoteViewDelegate>)delegate {
[PUSH_VIEW setPushNoteDelegate:delegate];
}

#pragma mark - Lifecycle (of sort)
- (id)initWithFrame:(CGRect)frame
{
Expand Down

0 comments on commit 4fa916e

Please sign in to comment.