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;
72 +(void)setWindowMargin:(CGSize)margin;
75 -(void)setFileContents:(NSString *)fileContents;
77 @property (strong, nonatomic) NSString* fileName;
78 @property (strong, nonatomic) UIWebView* webView;
79 @property (weak, nonatomic) id <MTPopupWindowDelegate> delegate;
80 @property (nonatomic) BOOL usesSafari;