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 Mar 2, 2015
1 parent 31dd778 commit f3c12a7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
8 changes: 7 additions & 1 deletion ParseUI/Classes/Cells/PFCollectionViewCell.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@

#import <UIKit/UIKit.h>

#import <ParseUI/ParseUIConstants.h>

PFUI_ASSUME_NONNULL_BEGIN

@class PFImageView;
@class PFObject;

Expand Down Expand Up @@ -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
9 changes: 7 additions & 2 deletions ParseUI/Classes/Cells/PFPurchaseTableViewCell.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@

#import <UIKit/UIKit.h>

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

PFUI_ASSUME_NONNULL_BEGIN

/*!
An enum that represents states of the PFPurchaseTableViewCell.
@see PFPurchaseTableViewCell
Expand Down Expand Up @@ -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
7 changes: 6 additions & 1 deletion ParseUI/Classes/Cells/PFTableViewCell.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@

#import <UIKit/UIKit.h>

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

PFUI_ASSUME_NONNULL_BEGIN

/*!
The `PFTableViewCell` class represents a table view cell which can download and display remote images stored on Parse.
Expand All @@ -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

0 comments on commit f3c12a7

Please sign in to comment.