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

Commit

Permalink
Add nullability annotations to all cells.
Browse files Browse the repository at this point in the history
  • Loading branch information
nlutsenko committed Feb 16, 2015
1 parent 6fc1c09 commit 00bdfe7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions ParseUI/Classes/Cells/PFCollectionViewCell.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

#import <UIKit/UIKit.h>

#import <ParseUI/ParseUIConstants.h>

@class PFImageView;
@class PFObject;

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

/*!
@abstract The lazy-loaded imageView of the collection view cell.
@see PFImageView
*/
@property (nonatomic, strong, readonly) PFImageView *imageView;
@property (nonatomic, strong, readonly, nonnull) PFImageView *imageView;

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

@end
5 changes: 3 additions & 2 deletions ParseUI/Classes/Cells/PFPurchaseTableViewCell.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#import <UIKit/UIKit.h>

#import <ParseUI/ParseUIConstants.h>
#import <ParseUI/PFTableViewCell.h>

/*!
Expand Down Expand Up @@ -53,11 +54,11 @@ typedef NS_ENUM(uint8_t, PFPurchaseTableViewCellState) {
/*!
@abstract Label where price of the product is displayed.
*/
@property (nonatomic, strong, readonly) UILabel *priceLabel;
@property (nonatomic, strong, readonly, nullable) UILabel *priceLabel;

/*!
@abstract Progress view that is shown, when the product is downloading.
*/
@property (nonatomic, strong, readonly) UIProgressView *progressView;
@property (nonatomic, strong, readonly, nullable) UIProgressView *progressView;

@end
3 changes: 2 additions & 1 deletion ParseUI/Classes/Cells/PFTableViewCell.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#import <UIKit/UIKit.h>

#import <ParseUI/ParseUIConstants.h>
#import <ParseUI/PFImageView.h>

/*!
Expand All @@ -36,6 +37,6 @@
@see PFImageView
*/
@property (nonatomic, strong, readonly) PFImageView *imageView;
@property (nonatomic, strong, readonly, nullable) PFImageView *imageView;

@end

0 comments on commit 00bdfe7

Please sign in to comment.