21
21
22
22
#import < UIKit/UIKit.h>
23
23
24
+ #import < Parse/PFConstants.h>
24
25
#import < ParseUI/ParseUIConstants.h>
25
26
26
27
NS_ASSUME_NONNULL_BEGIN
27
28
28
- @class BFTask;
29
+ @class BFTask PF_GENERIC (__covariant BFGenericType) ;
29
30
@class PFObject;
30
31
@class PFQuery;
31
32
@class PFTableViewCell;
@@ -148,7 +149,7 @@ NS_ASSUME_NONNULL_BEGIN
148
149
/* *
149
150
The array of instances of `PFObject` that is used as a data source.
150
151
*/
151
- @property (nullable , nonatomic , copy , readonly ) NSArray *objects;
152
+ @property (nullable , nonatomic , copy , readonly ) NSArray PF_GENERIC (__kindof PFObject *) *objects;
152
153
153
154
/* *
154
155
Returns an object at a particular indexPath.
@@ -175,12 +176,12 @@ NS_ASSUME_NONNULL_BEGIN
175
176
/* *
176
177
Removes all objects at the specified index paths, animated.
177
178
*/
178
- - (void )removeObjectsAtIndexPaths : (nullable NSArray *) indexes ;
179
+ - (void )removeObjectsAtIndexPaths : (nullable NSArray PF_GENERIC ( NSIndexPath *)*)indexPaths ;
179
180
180
181
/* *
181
182
Removes all objects at the specified index paths, with or without animation.
182
183
*/
183
- - (void )removeObjectsAtIndexPaths : (nullable NSArray *) indexes animated : (BOOL )animated ;
184
+ - (void )removeObjectsAtIndexPaths : (nullable NSArray PF_GENERIC ( NSIndexPath *)*)indexPaths animated:(BOOL )animated;
184
185
185
186
/* *
186
187
Clears the table of all objects.
@@ -192,7 +193,7 @@ NS_ASSUME_NONNULL_BEGIN
192
193
193
194
@return An awaitable task that completes when the reload succeeds
194
195
*/
195
- - (BFTask *)loadObjects ;
196
+ - (BFTask PF_GENERIC ( NSArray <__kindof PFObject *> *) *)loadObjects;
196
197
197
198
/* *
198
199
Loads the objects of the className at the specified page and appends it to the
@@ -203,7 +204,7 @@ NS_ASSUME_NONNULL_BEGIN
203
204
204
205
@return An awaitable task that completes when the reload succeeds
205
206
*/
206
- - (BFTask *)loadObjects : (NSInteger )page clear : (BOOL )clear ;
207
+ - (BFTask PF_GENERIC ( NSArray <__kindof PFObject *> *) *)loadObjects:(NSInteger )page clear:(BOOL )clear;
207
208
208
209
/* *
209
210
Loads the next page of objects, appends to table, and refreshes.
@@ -239,8 +240,8 @@ NS_ASSUME_NONNULL_BEGIN
239
240
@return The cell that represents this object.
240
241
*/
241
242
- (nullable PFTableViewCell *)tableView : (UITableView *)tableView
242
- cellForRowAtIndexPath : (NSIndexPath *)indexPath
243
- object : (nullable PFObject *)object ;
243
+ cellForRowAtIndexPath : (NSIndexPath *)indexPath
244
+ object : (nullable PFObject *)object ;
244
245
245
246
/* *
246
247
Override this method to customize the cell that allows the user to load the
@@ -251,8 +252,7 @@ NS_ASSUME_NONNULL_BEGIN
251
252
252
253
@return The cell that allows the user to paginate.
253
254
*/
254
- - (nullable PFTableViewCell *)tableView : (UITableView *)tableView
255
- cellForNextPageAtIndexPath : (NSIndexPath *)indexPath ;
255
+ - (nullable PFTableViewCell *)tableView : (UITableView *)tableView cellForNextPageAtIndexPath : (NSIndexPath *)indexPath ;
256
256
257
257
@end
258
258
0 commit comments