Skip to content

Commit

Permalink
FIX warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerome Morissard committed Sep 4, 2016
1 parent 02b204d commit 4240ee6
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Pod/Classes/JMActionSheet.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @param viewController the parent view controller
* @param view the parent view in hierarchy
*/
+ (void)showActionSheetDescription:(nonnull JMActionSheetDescription *)actionSheetDescription inViewController:(nonnull UIViewController *)viewController fromView:(UIView *)view;
+ (void)showActionSheetDescription:(nonnull JMActionSheetDescription *)actionSheetDescription inViewController:(nonnull UIViewController *)viewController fromView:(nonnull UIView *)view;

/**
* Present a actionSheet like controller, generated using your description and inside a particular view and with arrow directions constraint.
Expand Down
8 changes: 4 additions & 4 deletions Pod/Classes/JMActionSheetCollectionItemCell.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

@interface JMActionSheetCollectionItemCell : UICollectionViewCell

- (void)updateCollectionViewCellWithObject:(id)obj
atIndexPath:(NSIndexPath *)indexPath
delegate:(id <UICollectionViewDelegate>)delegate
collectionView:(UICollectionView *)collectionView;
- (void)updateCollectionViewCellWithObject:(nonnull id)obj
atIndexPath:(nonnull NSIndexPath *)indexPath
delegate:(nullable id <UICollectionViewDelegate>)delegate
collectionView:(nonnull UICollectionView *)collectionView;

@end
2 changes: 1 addition & 1 deletion Pod/Classes/JMActionSheetImagesItem.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

@protocol JMActionSheetImagesItemDisplayable <NSObject>

- (UIImage *)displayableImage;
- (nonnull UIImage *)displayableImage;

@end

Expand Down
10 changes: 5 additions & 5 deletions Pod/Classes/JMActionSheetItem.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

@class JMActionSheetItem;
typedef void (^JMActionSheetItemAction)(void);
typedef void (^JMActionSheetSelectedItemBlock)(id selectedItem);
typedef void (^JMActionSheetSelectedItemBlock)(__nonnull id selectedItem);

@interface JMActionSheetItem : NSObject

Expand All @@ -20,10 +20,10 @@ typedef void (^JMActionSheetSelectedItemBlock)(id selectedItem);
@property (nonnull, strong, nonatomic) UIImage *icon;

//Appearance
@property (strong, nonatomic) UIColor *backgroundColor;
@property (strong, nonatomic) UIColor *textColor;
@property (strong, nonatomic) UIFont *textFont;
@property (nullable, strong, nonatomic) UIColor *backgroundColor;
@property (nullable, strong, nonatomic) UIColor *textColor;
@property (nullable, strong, nonatomic) UIFont *textFont;

+ (NSString *)stringOfClass;
+ (nonnull NSString *)stringOfClass;

@end
6 changes: 4 additions & 2 deletions Pod/Classes/JMDatePickerActionSheet.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ + (JMActionSheetDescription *)datePickerDescriptionMinDate:(NSDate *)minDate
pickerItem.minDate = minDate;
pickerItem.maxDate = maxDate;
pickerItem.selectedDate = date;

__weak JMActionSheetDatePickerItem *weakPickerItem = pickerItem;
pickerItem.pickerUpdateActionBlock = ^(id selectedDate) {
if (didUpdateBlock) {
didUpdateBlock(selectedDate);
pickerItem.selectedDate = selectedDate;
weakPickerItem.selectedDate = selectedDate;
}
};
pickerItem.pickerValidateActionBlock = didValidateBlock;
Expand All @@ -55,7 +57,7 @@ + (JMActionSheetDescription *)datePickerDescriptionMinDate:(NSDate *)minDate
validateItem.action = ^(){
//NSLog(@"Validate pressed");
if (didValidateBlock) {
didValidateBlock(pickerItem.selectedDate);
didValidateBlock(weakPickerItem.selectedDate);
}
};

Expand Down

0 comments on commit 4240ee6

Please sign in to comment.