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

Commit 58b5daf

Browse files
committed
Merge pull request #75 from ParsePlatform/nlutsenko.xcode_63
Fix nullability annotations in PFImageView for Xcode 6.3.
2 parents 9f792ca + 36621d6 commit 58b5daf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ParseUI/Classes/Views/PFImageView.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525

2626
PFUI_ASSUME_NONNULL_BEGIN
2727

28+
typedef void(^PFImageViewImageResultBlock)(UIImage *PFUI_NULLABLE_S image, NSError *PFUI_NULLABLE_S error);
29+
2830
@class BFTask;
2931
@class PFFile;
3032

@@ -56,7 +58,7 @@ PFUI_ASSUME_NONNULL_BEGIN
5658
5759
@param completion the completion block.
5860
*/
59-
- (void)loadInBackground:(PFUI_NULLABLE void (^)(PFUI_NULLABLE_S UIImage *image, PFUI_NULLABLE_S NSError *error))completion;
61+
- (void)loadInBackground:(PFUI_NULLABLE PFImageViewImageResultBlock)completion;
6062

6163
/*!
6264
@abstract Initiate downloading of the remote image.
@@ -67,7 +69,7 @@ PFUI_ASSUME_NONNULL_BEGIN
6769
@param progressBlock called with the download progress as the image is being downloaded.
6870
Will be called with a value of 100 before the completion block is called.
6971
*/
70-
- (void)loadInBackground:(PFUI_NULLABLE void (^)(PFUI_NULLABLE_S UIImage *image, PFUI_NULLABLE_S NSError *error))completion
72+
- (void)loadInBackground:(PFUI_NULLABLE PFImageViewImageResultBlock)completion
7173
progressBlock:(PFUI_NULLABLE void (^)(int percentDone))progressBlock;
7274

7375
@end

0 commit comments

Comments
 (0)