19 #import <UIKit/UIKit.h>
27 @protocol MTPopupWindowDelegate <NSObject>
29 - (void) willShowMTPopupWindow:(MTPopupWindow*)sender;
30 - (void) didShowMTPopupWindow:(MTPopupWindow*)sender;
31 - (void) willCloseMTPopupWindow:(MTPopupWindow*)sender;
32 - (void) didCloseMTPopupWindow:(MTPopupWindow*)sender;
40 @interface MTPopupWindow : UIView
46 +(MTPopupWindow*)showWindowWithHTMLFile:(NSString*)fileName;
53 +(MTPopupWindow*)showWindowWithHTMLFile:(NSString*)fileName insideView:(UIView*)view;
66 -(void)showInView:(UIView*)v;
69 -(void)closePopupWindow;
75 +(void)setWindowMargin:(CGSize)margin;
78 -(void)setFileContents:(NSString *)fileContents;
80 @property (strong, nonatomic) NSString* fileName;
81 @property (strong, nonatomic) UIWebView* webView;
82 @property (weak, nonatomic) id <MTPopupWindowDelegate> delegate;
83 @property (nonatomic) BOOL usesSafari;