@@ -24,6 +24,7 @@ of this software and associated documentation files (the "Software"), to deal
24
24
25
25
*/
26
26
27
+
27
28
#import < PureLayout/PureLayout.h>
28
29
#import " CTAssetsPickerController.h"
29
30
#import " CTAssetItemViewController.h"
@@ -33,6 +34,8 @@ of this software and associated documentation files (the "Software"), to deal
33
34
#import " PHImageManager+CTAssetsPickerController.h"
34
35
35
36
37
+
38
+
36
39
@interface CTAssetItemViewController ()
37
40
38
41
@property (nonatomic , weak ) CTAssetsPickerController *picker;
@@ -50,6 +53,9 @@ @interface CTAssetItemViewController ()
50
53
@end
51
54
52
55
56
+
57
+
58
+
53
59
@implementation CTAssetItemViewController
54
60
55
61
+ (CTAssetItemViewController *)assetItemViewControllerForAsset : (PHAsset *)asset
@@ -136,7 +142,7 @@ - (void)setupViews
136
142
{
137
143
CTAssetScrollView *scrollView = [CTAssetScrollView newAutoLayoutView ];
138
144
scrollView.allowsSelection = self.allowsSelection ;
139
-
145
+
140
146
self.scrollView = scrollView;
141
147
[self .view addSubview: self .scrollView];
142
148
[self .view layoutIfNeeded ];
@@ -202,7 +208,7 @@ - (void)requestAssetImage
202
208
203
209
// this image is set for transition animation
204
210
self.image = image;
205
-
211
+
206
212
dispatch_async (dispatch_get_main_queue (), ^{
207
213
208
214
NSError *error = info[PHImageErrorKey];
@@ -231,7 +237,7 @@ - (PHImageRequestOptions *)imageRequestOptions
231
237
[self .scrollView setProgress: progress];
232
238
});
233
239
};
234
-
240
+
235
241
return options;
236
242
}
237
243
0 commit comments