diff --git a/KLCPopup/KLCPopup.h b/KLCPopup/KLCPopup.h index 36fe364..6534df4 100644 --- a/KLCPopup/KLCPopup.h +++ b/KLCPopup/KLCPopup.h @@ -133,10 +133,10 @@ extern const KLCPopupLayout KLCPopupLayoutCenter; @property (nonatomic, copy) void (^didFinishDismissingCompletion)(); // Convenience method for creating popup with default values (mimics UIAlertView). -+ (KLCPopup*)popupWithContentView:(UIView*)contentView; ++ (instancetype)popupWithContentView:(UIView*)contentView; // Convenience method for creating popup with custom values. -+ (KLCPopup*)popupWithContentView:(UIView*)contentView ++ (instancetype)popupWithContentView:(UIView*)contentView showType:(KLCPopupShowType)showType dismissType:(KLCPopupDismissType)dismissType maskType:(KLCPopupMaskType)maskType diff --git a/KLCPopup/KLCPopup.m b/KLCPopup/KLCPopup.m index f297cce..bcc8a74 100644 --- a/KLCPopup/KLCPopup.m +++ b/KLCPopup/KLCPopup.m @@ -165,7 +165,7 @@ - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event { #pragma mark - Class Public -+ (KLCPopup*)popupWithContentView:(UIView*)contentView ++ (instancetype)popupWithContentView:(UIView*)contentView { KLCPopup* popup = [[[self class] alloc] init]; popup.contentView = contentView; @@ -173,7 +173,7 @@ + (KLCPopup*)popupWithContentView:(UIView*)contentView } -+ (KLCPopup*)popupWithContentView:(UIView*)contentView ++ (instancetype)popupWithContentView:(UIView*)contentView showType:(KLCPopupShowType)showType dismissType:(KLCPopupDismissType)dismissType maskType:(KLCPopupMaskType)maskType