From f3c12a74a6f0b4909a6a649c8e1d53af56c2abd9 Mon Sep 17 00:00:00 2001 From: Nikita Lutsenko Date: Mon, 16 Feb 2015 21:36:31 +0000 Subject: [PATCH] Add nullability annotations to all cells. --- ParseUI/Classes/Cells/PFCollectionViewCell.h | 8 +++++++- ParseUI/Classes/Cells/PFPurchaseTableViewCell.h | 9 +++++++-- ParseUI/Classes/Cells/PFTableViewCell.h | 7 ++++++- 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/ParseUI/Classes/Cells/PFCollectionViewCell.h b/ParseUI/Classes/Cells/PFCollectionViewCell.h index 7760837..71b3642 100644 --- a/ParseUI/Classes/Cells/PFCollectionViewCell.h +++ b/ParseUI/Classes/Cells/PFCollectionViewCell.h @@ -21,6 +21,10 @@ #import +#import + +PFUI_ASSUME_NONNULL_BEGIN + @class PFImageView; @class PFObject; @@ -50,6 +54,8 @@ @param object An instance of `PFObject` to update from. */ -- (void)updateFromObject:(PFObject *)object; +- (void)updateFromObject:(PFUI_NULLABLE PFObject *)object; @end + +PFUI_ASSUME_NONNULL_END diff --git a/ParseUI/Classes/Cells/PFPurchaseTableViewCell.h b/ParseUI/Classes/Cells/PFPurchaseTableViewCell.h index 8c47c7c..eb80487 100644 --- a/ParseUI/Classes/Cells/PFPurchaseTableViewCell.h +++ b/ParseUI/Classes/Cells/PFPurchaseTableViewCell.h @@ -21,8 +21,11 @@ #import +#import #import +PFUI_ASSUME_NONNULL_BEGIN + /*! An enum that represents states of the PFPurchaseTableViewCell. @see PFPurchaseTableViewCell @@ -53,11 +56,13 @@ typedef NS_ENUM(uint8_t, PFPurchaseTableViewCellState) { /*! @abstract Label where price of the product is displayed. */ -@property (nonatomic, strong, readonly) UILabel *priceLabel; +@property (PFUI_NULLABLE_PROPERTY nonatomic, strong, readonly) UILabel *priceLabel; /*! @abstract Progress view that is shown, when the product is downloading. */ -@property (nonatomic, strong, readonly) UIProgressView *progressView; +@property (PFUI_NULLABLE_PROPERTY nonatomic, strong, readonly) UIProgressView *progressView; @end + +PFUI_ASSUME_NONNULL_END diff --git a/ParseUI/Classes/Cells/PFTableViewCell.h b/ParseUI/Classes/Cells/PFTableViewCell.h index c672bdd..9238d99 100644 --- a/ParseUI/Classes/Cells/PFTableViewCell.h +++ b/ParseUI/Classes/Cells/PFTableViewCell.h @@ -21,8 +21,11 @@ #import +#import #import +PFUI_ASSUME_NONNULL_BEGIN + /*! The `PFTableViewCell` class represents a table view cell which can download and display remote images stored on Parse. @@ -36,6 +39,8 @@ @see PFImageView */ -@property (nonatomic, strong, readonly) PFImageView *imageView; +@property (PFUI_NULLABLE_PROPERTY nonatomic, strong, readonly) PFImageView *imageView; @end + +PFUI_ASSUME_NONNULL_END