Skip to content
This repository was archived by the owner on Jan 16, 2021. It is now read-only.

Commit 00bdfe7

Browse files
committed
Add nullability annotations to all cells.
1 parent 6fc1c09 commit 00bdfe7

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

ParseUI/Classes/Cells/PFCollectionViewCell.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
#import <UIKit/UIKit.h>
2323

24+
#import <ParseUI/ParseUIConstants.h>
25+
2426
@class PFImageView;
2527
@class PFObject;
2628

@@ -33,14 +35,14 @@
3335
/*!
3436
@abstract A simple lazy-loaded label for the collection view cell.
3537
*/
36-
@property (nonatomic, strong, readonly) UILabel *textLabel;
38+
@property (nonatomic, strong, readonly, nonnull) UILabel *textLabel;
3739

3840
/*!
3941
@abstract The lazy-loaded imageView of the collection view cell.
4042
4143
@see PFImageView
4244
*/
43-
@property (nonatomic, strong, readonly) PFImageView *imageView;
45+
@property (nonatomic, strong, readonly, nonnull) PFImageView *imageView;
4446

4547
/*!
4648
@abstract This method should update all the relevant information inside a subclass of `PFCollectionViewCell`.
@@ -50,6 +52,6 @@
5052
5153
@param object An instance of `PFObject` to update from.
5254
*/
53-
- (void)updateFromObject:(PFObject *)object;
55+
- (void)updateFromObject:(nullable PFObject *)object;
5456

5557
@end

ParseUI/Classes/Cells/PFPurchaseTableViewCell.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
#import <UIKit/UIKit.h>
2323

24+
#import <ParseUI/ParseUIConstants.h>
2425
#import <ParseUI/PFTableViewCell.h>
2526

2627
/*!
@@ -53,11 +54,11 @@ typedef NS_ENUM(uint8_t, PFPurchaseTableViewCellState) {
5354
/*!
5455
@abstract Label where price of the product is displayed.
5556
*/
56-
@property (nonatomic, strong, readonly) UILabel *priceLabel;
57+
@property (nonatomic, strong, readonly, nullable) UILabel *priceLabel;
5758

5859
/*!
5960
@abstract Progress view that is shown, when the product is downloading.
6061
*/
61-
@property (nonatomic, strong, readonly) UIProgressView *progressView;
62+
@property (nonatomic, strong, readonly, nullable) UIProgressView *progressView;
6263

6364
@end

ParseUI/Classes/Cells/PFTableViewCell.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
#import <UIKit/UIKit.h>
2323

24+
#import <ParseUI/ParseUIConstants.h>
2425
#import <ParseUI/PFImageView.h>
2526

2627
/*!
@@ -36,6 +37,6 @@
3637
3738
@see PFImageView
3839
*/
39-
@property (nonatomic, strong, readonly) PFImageView *imageView;
40+
@property (nonatomic, strong, readonly, nullable) PFImageView *imageView;
4041

4142
@end

0 commit comments

Comments
 (0)