|
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 PFObject; |
25 | 29 | @class PFQuery; |
26 | 30 | @class PFTableViewCell; |
|
52 | 56 |
|
53 | 57 | @returns An initialized `PFQueryTableViewController` object or `nil` if the object couldn't be created. |
54 | 58 | */ |
55 | | -- (instancetype)initWithStyle:(UITableViewStyle)style className:(NSString *)className NS_DESIGNATED_INITIALIZER; |
| 59 | +- (instancetype)initWithStyle:(UITableViewStyle)style |
| 60 | + className:(PFUI_NULLABLE NSString *)className NS_DESIGNATED_INITIALIZER; |
56 | 61 |
|
57 | 62 | /*! |
58 | 63 | @abstract Initializes with a class name of the PFObjects that will be associated with this table. |
|
61 | 66 |
|
62 | 67 | @returns An initialized `PFQueryTableViewController` object or `nil` if the object couldn't be created. |
63 | 68 | */ |
64 | | -- (instancetype)initWithClassName:(NSString *)className; |
| 69 | +- (instancetype)initWithClassName:(PFUI_NULLABLE NSString *)className; |
65 | 70 |
|
66 | 71 | ///-------------------------------------- |
67 | 72 | /// @name Configuring Behavior |
|
70 | 75 | /*! |
71 | 76 | @abstract The class name of the <PFObject> this table will use as a datasource. |
72 | 77 | */ |
73 | | -@property (nonatomic, copy) IBInspectable NSString *parseClassName; |
| 78 | +@property (PFUI_NULLABLE_PROPERTY nonatomic, copy) IBInspectable NSString *parseClassName; |
74 | 79 |
|
75 | 80 | /*! |
76 | 81 | @abstract The key to use to display for the cell text label. |
77 | 82 |
|
78 | 83 | @discussion This won't apply if you override <tableView:cellForRowAtIndexPath:object:> |
79 | 84 | */ |
80 | | -@property (nonatomic, copy) IBInspectable NSString *textKey; |
| 85 | +@property (PFUI_NULLABLE_PROPERTY nonatomic, copy) IBInspectable NSString *textKey; |
81 | 86 |
|
82 | 87 | /*! |
83 | 88 | @abstract The key to use to display for the cell image view. |
84 | 89 |
|
85 | 90 | @discussion This won't apply if you override <tableView:cellForRowAtIndexPath:object:> |
86 | 91 | */ |
87 | | -@property (nonatomic, copy) IBInspectable NSString *imageKey; |
| 92 | +@property (PFUI_NULLABLE_PROPERTY nonatomic, copy) IBInspectable NSString *imageKey; |
88 | 93 |
|
89 | 94 | /*! |
90 | 95 | @abstract The image to use as a placeholder for the cell images. |
91 | 96 |
|
92 | 97 | @discussion This won't apply if you override <tableView:cellForRowAtIndexPath:object:> |
93 | 98 | */ |
94 | | -@property (nonatomic, strong) IBInspectable UIImage *placeholderImage; |
| 99 | +@property (PFUI_NULLABLE_PROPERTY nonatomic, strong) IBInspectable UIImage *placeholderImage; |
95 | 100 |
|
96 | 101 | /*! |
97 | 102 | @abstract Whether the table should use the default loading view. Default - `YES`. |
|
133 | 138 | call [super objectsDidLoad:] in your implementation. |
134 | 139 | @param error The Parse error from running the PFQuery, if there was any. |
135 | 140 | */ |
136 | | -- (void)objectsDidLoad:(NSError *)error; |
| 141 | +- (void)objectsDidLoad:(PFUI_NULLABLE NSError *)error; |
137 | 142 |
|
138 | 143 | ///-------------------------------------- |
139 | 144 | /// @name Accessing Results |
|
142 | 147 | /*! |
143 | 148 | @abstract The array of instances of <PFObject> that is used as a data source. |
144 | 149 | */ |
145 | | -@property (nonatomic, copy, readonly) NSArray *objects; |
| 150 | +@property (PFUI_NULLABLE_PROPERTY nonatomic, copy, readonly) NSArray *objects; |
146 | 151 |
|
147 | 152 | /*! |
148 | 153 | @abstract Returns an object at a particular indexPath. |
|
154 | 159 |
|
155 | 160 | @returns The object at the specified index |
156 | 161 | */ |
157 | | -- (PFObject *)objectAtIndexPath:(NSIndexPath *)indexPath; |
| 162 | +- (PFUI_NULLABLE PFObject *)objectAtIndexPath:(PFUI_NULLABLE NSIndexPath *)indexPath; |
158 | 163 |
|
159 | 164 | /*! |
160 | 165 | @abstract Clears the table of all objects. |
|
208 | 213 |
|
209 | 214 | @returns The cell that represents this object. |
210 | 215 | */ |
211 | | -- (PFTableViewCell *)tableView:(UITableView *)tableView |
212 | | - cellForRowAtIndexPath:(NSIndexPath *)indexPath |
213 | | - object:(PFObject *)object; |
| 216 | +- (PFUI_NULLABLE PFTableViewCell *)tableView:(UITableView *)tableView |
| 217 | + cellForRowAtIndexPath:(NSIndexPath *)indexPath |
| 218 | + object:(PFUI_NULLABLE PFObject *)object; |
214 | 219 |
|
215 | 220 | /*! |
216 | 221 | @discussion Override this method to customize the cell that allows the user to load the |
|
221 | 226 |
|
222 | 227 | @returns The cell that allows the user to paginate. |
223 | 228 | */ |
224 | | -- (PFTableViewCell *)tableView:(UITableView *)tableView cellForNextPageAtIndexPath:(NSIndexPath *)indexPath; |
| 229 | +- (PFUI_NULLABLE PFTableViewCell *)tableView:(UITableView *)tableView |
| 230 | + cellForNextPageAtIndexPath:(NSIndexPath *)indexPath; |
225 | 231 |
|
226 | 232 | @end |
| 233 | + |
| 234 | +PFUI_ASSUME_NONNULL_END |
0 commit comments