ifish/Ifish/controllers/IfishYooseeFile/IfishYooseeHelper/MPNotificationView/MPNotificationView.h

60 lines
2.0 KiB
Objective-C

//
// MPNotificationView.h
// Moped
//
// Created by Engin Kurutepe on 1/2/13.
// Copyright (c) 2013 Moped Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
extern NSString *kMPNotificationViewTapReceivedNotification;
typedef void (^MPNotificationSimpleAction)(id);
@protocol MPNotificationViewDelegate;
@interface MPNotificationView : UIView
@property (nonatomic, strong) UILabel *textLabel;
@property (nonatomic, strong) UILabel *detailTextLabel;
@property (nonatomic, strong) UIImageView *imageView;
@property (nonatomic, assign) id<MPNotificationViewDelegate> delegate;
@property (nonatomic) NSTimeInterval duration;
+ (MPNotificationView *) notifyWithText:(NSString*)text
detail:(NSString*)detail
image:(UIImage*)image
andDuration:(NSTimeInterval)duration;
+ (MPNotificationView *) notifyWithText:(NSString*)text
detail:(NSString*)detail
andDuration:(NSTimeInterval)duration;
+ (MPNotificationView *) notifyWithText:(NSString*)text
andDetail:(NSString*)detail;
+ (MPNotificationView *) notifyWithText:(NSString*)text
detail:(NSString*)detail
image:(UIImage*)image
duration:(NSTimeInterval)duration
andTouchBlock:(MPNotificationSimpleAction)block;
+ (MPNotificationView *) notifyWithText:(NSString*)text
detail:(NSString*)detail
duration:(NSTimeInterval)duration
andTouchBlock:(MPNotificationSimpleAction)block;
+ (MPNotificationView *) notifyWithText:(NSString*)text
detail:(NSString*)detail
andTouchBlock:(MPNotificationSimpleAction)block;
@end
@protocol MPNotificationViewDelegate <NSObject>
@optional
- (void)didTapOnNotificationView:(MPNotificationView *)notificationView;
@end