|
21 | 21 |
|
22 | 22 | #import <UIKit/UIKit.h> |
23 | 23 |
|
| 24 | +#import <ParseUI/ParseUIConstants.h> |
| 25 | + |
| 26 | +PFUI_ASSUME_NONNULL_BEGIN |
| 27 | + |
24 | 28 | @class PFCollectionViewCell; |
25 | 29 | @class PFObject; |
26 | 30 | @class PFQuery; |
|
45 | 49 | /*! |
46 | 50 | @abstract The class name of the <PFObject> this collection will use as a datasource. |
47 | 51 | */ |
48 | | -@property (nonatomic, copy) IBInspectable NSString *parseClassName; |
| 52 | +@property (PFUI_NULLABLE_PROPERTY nonatomic, copy) IBInspectable NSString *parseClassName; |
49 | 53 |
|
50 | 54 | /*! |
51 | 55 | @abstract Whether the collection should use the default loading view. Default - `YES`. |
|
84 | 88 |
|
85 | 89 | @returns An initialized `PFQueryCollectionViewController` object or `nil` if the object couldn't be created. |
86 | 90 | */ |
87 | | -- (instancetype)initWithClassName:(NSString *)className; |
| 91 | +- (instancetype)initWithClassName:(PFUI_NULLABLE NSString *)className; |
88 | 92 |
|
89 | 93 | /*! |
90 | 94 | @abstract Initializes a view controller with a class name of <PFObject> that will be associated with this collection. |
|
94 | 98 |
|
95 | 99 | @returns An initialized `PFQueryCollectionViewController` object or `nil` if the object couldn't be created. |
96 | 100 | */ |
97 | | -- (instancetype)initWithCollectionViewLayout:(UICollectionViewLayout *)layout className:(NSString *)className NS_DESIGNATED_INITIALIZER; |
| 101 | +- (instancetype)initWithCollectionViewLayout:(UICollectionViewLayout *)layout |
| 102 | + className:(PFUI_NULLABLE NSString *)className NS_DESIGNATED_INITIALIZER; |
98 | 103 |
|
99 | 104 | ///-------------------------------------- |
100 | 105 | /// @name Responding to Events |
|
111 | 116 | call [super objectsDidLoad:] in your implementation. |
112 | 117 | @param error The Parse error from running the PFQuery, if there was any. |
113 | 118 | */ |
114 | | -- (void)objectsDidLoad:(NSError *)error NS_REQUIRES_SUPER; |
| 119 | +- (void)objectsDidLoad:(PFUI_NULLABLE NSError *)error NS_REQUIRES_SUPER; |
115 | 120 |
|
116 | 121 | ///-------------------------------------- |
117 | 122 | /// @name Accessing Results |
|
132 | 137 |
|
133 | 138 | @returns The object at the specified indexPath. |
134 | 139 | */ |
135 | | -- (PFObject *)objectAtIndexPath:(NSIndexPath *)indexPath; |
| 140 | +- (PFUI_NULLABLE PFObject *)objectAtIndexPath:(PFUI_NULLABLE NSIndexPath *)indexPath; |
136 | 141 |
|
137 | 142 | ///-------------------------------------- |
138 | 143 | /// @name Loading Data |
|
188 | 193 |
|
189 | 194 | @returns The cell that represents this object. |
190 | 195 | */ |
191 | | -- (PFCollectionViewCell *)collectionView:(UICollectionView *)collectionView |
192 | | - cellForItemAtIndexPath:(NSIndexPath *)indexPath |
193 | | - object:(PFObject *)object; |
| 196 | +- (PFUI_NULLABLE PFCollectionViewCell *)collectionView:(UICollectionView *)collectionView |
| 197 | + cellForItemAtIndexPath:(NSIndexPath *)indexPath |
| 198 | + object:(PFUI_NULLABLE PFObject *)object; |
194 | 199 |
|
195 | 200 | /*! |
196 | 201 | @discussion Override this method to customize the view that allows the user to load the |
|
200 | 205 |
|
201 | 206 | @returns The view that allows the user to paginate. |
202 | 207 | */ |
203 | | -- (UICollectionReusableView *)collectionViewReusableViewForNextPageAction:(UICollectionView *)collectionView; |
| 208 | +- (PFUI_NULLABLE UICollectionReusableView *)collectionViewReusableViewForNextPageAction:(UICollectionView *)collectionView; |
204 | 209 |
|
205 | 210 | @end |
| 211 | + |
| 212 | +PFUI_ASSUME_NONNULL_END |
0 commit comments