MMPopupWindow.h 527 B

1234567891011121314151617181920212223
  1. //
  2. // MMPopupWindow.h
  3. // MMPopupView
  4. //
  5. // Created by Ralph Li on 9/6/15.
  6. // Copyright © 2015 LJC. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface MMPopupWindow : UIWindow
  10. @property (nonatomic, assign) BOOL touchWildToHide; // default is NO. When YES, popup views will be hidden when user touch the translucent background.
  11. @property (nonatomic, readonly) UIView* attachView;
  12. + (MMPopupWindow *)sharedWindow;
  13. /**
  14. * cache the window to prevent the lag of the first showing.
  15. */
  16. - (void) cacheWindow;
  17. @end