//
//  UIViewController+Utility.h
//  Minfo
//
//  Created by Nguyen Hieu on 1/3/13.
//  Copyright (c) 2013 Nguyen Hieu. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "AppDelegate.h"
#import <MessageUI/MFMailComposeViewController.h>
#import <MessageUI/MFMessageComposeViewController.h>
#import "UIImageView+WebCache.h"
typedef enum {
    MJPopupViewAnimationSlideBottomTop = 1,
    MJPopupViewAnimationSlideRightLeft,
    MJPopupViewAnimationSlideLeftRight,
    MJPopupViewAnimationSlideBottomBottom,
    MJPopupViewAnimationFade
} MJPopupViewAnimation;

#define kPopupModalAnimationDuration 0.35
#define kMJSourceViewTag 23941
#define kMJPopupViewTag 23942
#define kMJBackgroundViewTag 23943
#define kMJOverlayViewTag 23945

@interface MJPopupBackgroundView : UIView

@end
@interface UIViewController (Utility) 
{
    
}
- (void)presentPopupViewController:(UIViewController*)popupViewController animationType:(MJPopupViewAnimation)animationType;
- (void)presentPopupViewController:(UIViewController*)popupViewController animationType:(MJPopupViewAnimation)animationType Frame:(CGRect)Frame ShowBackground:(BOOL)ShowBackground;
- (void)dismissPopupViewControllerWithanimationType:(MJPopupViewAnimation)animationType;
- (void)dismissPopupViewControllerWithanimationType2:(MJPopupViewAnimation)animationType Complate:(void (^)(void))Complate;

-(void)ShowNoticeError:(NSString *)Title Message:(NSString *)Message;
-(void)ShowNoticeSeuccess:(NSString *)Title Message:(NSString *)Message;
-(void)ShowStickySeuccess:(NSString *)Title Message:(NSString *)Message;

-(void)ShowDashboad;
-(void)ShowShareApp;
-(void)ShowPopupApp;
@end
