diff --git a/JMActionSheetDescription.podspec b/JMActionSheetDescription.podspec index f18ec31..7968dec 100644 --- a/JMActionSheetDescription.podspec +++ b/JMActionSheetDescription.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "JMActionSheetDescription" - s.version = "0.5.1" + s.version = "0.5.2" s.summary = "JMActionSheetDescription replace UIActionSheet and UIActivityViewController." s.description = <<-DESC JMActionSheetDescription is a descriptor component. It replace your ActionSheet and UIActivityViewController usage. Write your actionSheet description and let the framework generate your custom action representation. (Support iOS9 SplitView !) diff --git a/Pod/Classes/JMActionSheet.m b/Pod/Classes/JMActionSheet.m index c4d1a8e..1b6219d 100644 --- a/Pod/Classes/JMActionSheet.m +++ b/Pod/Classes/JMActionSheet.m @@ -39,7 +39,7 @@ @implementation JMActionSheet + (void)showActionSheetDescription:(JMActionSheetDescription *)actionSheetDescription inViewController:(UIViewController *)viewController { - [self showActionSheetDescription:actionSheetDescription inViewController:viewController fromView:nil]; + [self showActionSheetDescription:actionSheetDescription inViewController:viewController fromView:viewController.view]; } + (void)showActionSheetDescription:(JMActionSheetDescription *)actionSheetDescription inViewController:(UIViewController *)viewController fromView:(UIView *)view diff --git a/Pod/Classes/JMActionSheetCollectionItem.h b/Pod/Classes/JMActionSheetCollectionItem.h index 7a97da4..6270fdc 100644 --- a/Pod/Classes/JMActionSheetCollectionItem.h +++ b/Pod/Classes/JMActionSheetCollectionItem.h @@ -17,7 +17,7 @@ @property (assign, nonatomic) UIViewContentMode actionImageContentMode; @end -typedef void (^JMActionSheetSelectedCollectionItemBlock)(id selectedItem); +typedef void (^JMActionSheetSelectedCollectionItemBlock)(__nonnull id selectedItem); @interface JMActionSheetCollectionItem : JMActionSheetItem diff --git a/Pod/Classes/JMActionSheetPickerItem.h b/Pod/Classes/JMActionSheetPickerItem.h index 89eed9a..1996857 100644 --- a/Pod/Classes/JMActionSheetPickerItem.h +++ b/Pod/Classes/JMActionSheetPickerItem.h @@ -10,7 +10,7 @@ @protocol JMActionSheetPickerItemDisplayable -- (NSString *)displayableValueForActionSheetPicker; +- (nonnull NSString *)displayableValueForActionSheetPicker; @end